Runtime error 438 when running certain commands in Word 2000 - works fine in 2003/07

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
 
D

Doug Robbins - Word MVP

What happens if you look for help on those items in the VBE on a machine
that is running 2000?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top