Hi
I need to turn off the printing of hidden text in my vb6 program so I have inserted options.PrintHiddenText = False after opening the file in VBA. However it gives me an error 438 which I do not seem to be able to circumvent.
The section of the code is as follows:
msWord.WordBasic.fileopen WordFile1, 0
If wordrevisions = 0 Then
msWord.WordBasic.toolsrevisions 0, 0, 0
Else
msWord.WordBasic.toolsrevisions 0, 0, 1
End If
Err = 0
''20140528
msWord.WordBasic.options.PrintHiddenText = False
''20140528 end
Err = 0
msWord.WordBasic.fileprint 0, 0, 4, , , , 0, wordcopies, WordPageRange