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 / November 2007

Tip: Looking for answers? Try searching our database.

Word XP macros in Word 2007

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
robot - 01 Nov 2007 10:03 GMT
Hello,

I am using Word XP, considering upgrading to Word 2007.

I am concerned about opening my XP documents using Word 2007, because I
remember that ages ago, Word 6 macros, once opened by Word 97, are
automatically converted to Word 97 (vba) macros, and can never again be
opened by Word 6.

What will happen to my Word XP macro if the document containing the macro is
opened in Word 2007? I hope to use my XP macros in both Word XP and Word
2007 if possible.

Suggestions are most welcome!
Jay Freedman - 01 Nov 2007 17:06 GMT
The conversion between Word 6 and Word 97 involved the change from WordBasic
to VBA. There's no such conversion between Word 2002 and Word 2007, as they
both use the same VBA.

There are some new objects and methods in Word 2007, of course, and if you
use them in macros you write in Word 2007 and try to run the macros in Word
2002 then you will get compilation errors. The easiest solution is not to
use any of the new objects. Fortunately, a new feature of the VBA help in
2007 is a notice at the top of a help topic if it describes something new.
If you can't or won't avoid new things, you'll have to segregate them into
modules that get loaded only if the current Word instance is 2007.

There are also some things in Word 2002 that will no longer work, or at
least work correctly, in Word 2007. The main things to look out for are
custom toolbars and menus (CommandBar objects and their descendants) and
AutoTextEntries, and some of the Options members.

Signature

Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> Hello,
>
[quoted text clipped - 10 lines]
>
> Suggestions are most welcome!
robot - 02 Nov 2007 03:07 GMT
Hi Jay,

Thank you very much for your help.

"Jay Freedman" <jay.freedman@verizon.net> ¼¶¼g©ó¶l¥ó·s»D:%23oan8EKHIHA.1208@TK2MSFTNGP03.phx.gbl...
> The conversion between Word 6 and Word 97 involved the change from
> WordBasic to VBA. There's no such conversion between Word 2002 and Word
[quoted text clipped - 28 lines]
>>
>> Suggestions are most welcome!

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.