Multiple Versions Of Word

D

Derek Hart

I wish to test a macro I wrote in multiple versions of Word. I am calling
the macro from a Visual Basic program, and when I launch Word, I wish to
launch Word 97 and not Word XP. Even after going into Add/Remove Programs
and making Word XP not available, this darn thing still loads when I run the
following code:

Dim objWord As Object
objWord = CreateObject("Word.Application")

Is there a way to load the version I want?

Derek Hart
 
H

Helmut Weber

Hi Derek,
only a workaraound.
You could start the word-version you like by
using the shell command and continue with
getobject(, "Word.application").
Greetings from Bavaria, Germany
Helmut Weber
"red.sys" & chr$(64) & "t-online.de"
Word 97, XP, NT4.0, W98
 
J

Jonathan West

Hi Derek,

If you want to test VBA code properly on multiple versions of Word, then you
must be able to keep them effectively separated. That means running it on
separate PCs, or at least on separate virtual machines.

If you have an MSDN subscription, you can download Connectix VirtualPC from
the MSDN subscriber download area. Alternatively, you can buy it at most
large
computer stores. VMWare is another virtual PC program, though I haven't had
an opportunity to try it out. This is cheaper than having multiple PCs!

However, the PC you run it on must have sufficient memory that you can
assign a decent amount of memory to the virtual PC so that Word will run
reasonably well.
 
T

Thomas Winter

You MIGHT be able to do something like CreateObject("Word.Application.8")...
But that's only a guess. I haven't actually tried it.

Generally, you are at the mercy of whatever version of Word the user last
started.

-Tom
 
H

Howard Kaikow

I use multiboot systems for this purpose.
Each has a different version of Office.
Avoids possible side effects of using software to fake a virtual system.
 

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