Version Problem

F

Fred Kruger

My organisation is currently running different versions of word which is
causing a problem. We currently run a mix and match of NT/Office 97, Windows
XP/97 and Windows XP/Office 2003.

I need to switch off the way word 2003 by default opens a different document
in its own window which I can do by using.

Application.ShowWindowsInTaskbar = False

The problem i have is when this is inserted into the relevant documents and
that document is opened in word 97 then it throws an error method or data
object not found, relating to the ShowWindowsInTaskbar as it is not known in
word 97.

I have tried a version check but it still throughs the error even though
this part of the code is not accessed by word 97.

Has anyone any ideas how to get round VBA version conflicts as I dont want
to have different sets of documents for different versions.

Thanks in anticipation.

And Merry Christmas
 
J

Jonathan West

The way to handle this is to put the Word 2003-specific code into a separate
module, and only call that code from elsewhere after a version check to
ensure that you are in Word 2003. If the 2003-specific code is in a module
that is never called from within Word 97, you don't get the error.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
F

Fred Kruger

Jonathan

Der thicko here looked at every other posibility, thanks this is what i need.
 

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