Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

Application object (specifying version)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim - 02 Dec 2004 20:39 GMT
I am working in Visual Basic 6.
I am creating a Word.Application object and
manipulating documents.

When two different versions of Word reside on a machine
(Word 9 & Word 11), how can I specify that the application
object is to be version 9?

Appreciate all Help.

Signature

Tim Shaffer

Helmut Weber - 03 Dec 2004 11:48 GMT
Hi Tim,
>When two different versions of Word reside on a machine
>(Word 9 & Word 11), how can I specify that the application
>object is to be version 9?
>Appreciate all Help.
nothing but a workaround,
as I haven't heard of a straightforward solution, yet:

Close every instance of Word
start the Word you like
shell c:\...\winword.exe
getobject

Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
Martin Seelhofer - 03 Dec 2004 12:05 GMT
Hi Tim, Hello Helmut

> > When two different versions of Word reside on a machine
> > (Word 9 & Word 11), how can I specify that the application
[quoted text clipped - 7 lines]
> shell c:\...\winword.exe
> getobject

While I agree with Helmut in the technical correctness of the presented
workaround, I strongly recommend not to use it, since dynamically
accessing a different version than the one currently registered as
Word.Application (registry) seams to me to be problematic, to say
the least . Note that the last few Word-versions all re-register
themselves upon startup (thanx to their Self-Healing feature) if
they find some settings in the registry they consider to be
inappropriate. Therefore, a specific Word version might even
aks for its Installation CD which makes your macro virtually
useless...

Cheers,
Martin
Tim - 03 Dec 2004 14:09 GMT
I have decided to check the version once the Word application object
has been created. If it is a version 11, I will provide instructions for the
user to exit the application, start Word 9, exit Word 9, and then re-try
my new application.

Not very glamorous, but ....

Thanks for your suggestions.

> Hi Tim, Hello Helmut
>
[quoted text clipped - 23 lines]
> Cheers,
> Martin

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.