M
Mojo
Hi All
I know the easy answer to this is get users to use Word 2003/07, but I work
with schools and to upgrade their Word costs a lot at the mo so they have to
stick with Word 2000.
Basically if I issue the following commands via my VB6 app to a Word 2000
doc I keep getting a 438 runtime error:
oNewDoc.ActiveWindow.View.TableGridlines = False
oNewDoc.ActiveWindow.View.DisplayBackgrounds = True
The oNewDoc bit is an object that is set to oWord.Documents.Add(App.Path &
cDataFolder & "\" & strTemplate) and oWord is an object that is set as oWord
= CreateObject("Word.Application").
The whole process works fine in Word 2003 and 2007 no probs, but for some
reason Word 2000 doesn't like the above.
I know I could check for the version and omit these lines if Word 2000, but
I really want to add this functionality for Word 2000 users as well. If I
don't they have to go into the bowels of options and click the necessary
checkboxes and its an unnecessary faff.
Any ideas on how to get the above to work??
Thanks
I know the easy answer to this is get users to use Word 2003/07, but I work
with schools and to upgrade their Word costs a lot at the mo so they have to
stick with Word 2000.
Basically if I issue the following commands via my VB6 app to a Word 2000
doc I keep getting a 438 runtime error:
oNewDoc.ActiveWindow.View.TableGridlines = False
oNewDoc.ActiveWindow.View.DisplayBackgrounds = True
The oNewDoc bit is an object that is set to oWord.Documents.Add(App.Path &
cDataFolder & "\" & strTemplate) and oWord is an object that is set as oWord
= CreateObject("Word.Application").
The whole process works fine in Word 2003 and 2007 no probs, but for some
reason Word 2000 doesn't like the above.
I know I could check for the version and omit these lines if Word 2000, but
I really want to add this functionality for Word 2000 users as well. If I
don't they have to go into the bowels of options and click the necessary
checkboxes and its an unnecessary faff.
Any ideas on how to get the above to work??
Thanks