atw: Re: Shocking truth about macros

  • From: Stewart Walker <helpfulau@xxxxxxxxx>
  • To: austechwriter@xxxxxxxxxxxxx
  • Date: Wed, 4 Feb 2004 14:30:02 -0800 (PST)

Hi all

Couldn't resist joining this thread. Here's my take on
the issues...

Depending on which versions of Word we're talking
about, Michael and Craig are BOTH right.

From Word 2 to Word 95, Word macros were based on a
languaged called WordBASIC. WordBASIC *did* have a
fairly directly relationship with Word menus.

From Word 97 on, WordBASIC was replaced by VBA (Visual
Basic for Applications). Since the advent of VBA in
Word, Word macros no longer have any relationship with
Word menus, but are now based on a Document Object
Model (DOM) that defines all the goodies that Word can
do. Understanding this DOM is key to using VBA
effectively.

So the upshot is that legacy WordBASIC macros do
sometimes fall over in newer versions of Word. But a
properly constructed VBA macro *should* run OK in
newer versions of Word, since they are also use VBA
and the DOMs in the newer versions should be supersets
of those in the older versions.

In the real world, however, software (Word itself and
macros created by Word users) doesn't always play by
the rules, so things can and do go wrong.

Cheers

Stewart

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
**************************************************
To post a message to austechwriter, send the message to 
austechwriter@xxxxxxxxxxxxxx

To subscribe to austechwriter, send a message to 
austechwriter-request@xxxxxxxxxxxxx with "subscribe" in the Subject field.

To unsubscribe, send a message to austechwriter-request@xxxxxxxxxxxxx with 
"unsubscribe" in the Subject field.

To search the austechwriter archives, go to 
www.freelists.org/archives/austechwriter

To contact the list administrator, send a message to 
austechwriter-admins@xxxxxxxxxxxxx
**************************************************

Other related posts: