Word 2007

R

rub

I have some VBA coding in a word document that is uploaded to our
enterprise software. It is written in Word 2003. When we run certain
documents from our enterprise software, the one obtaining the document
can then run the macro after first saving the document to their hard
drive. My question is if the user has Word 2010 will there be problem
with VBA coding from Word 2003?
 
J

Jay Freedman

Maybe yes, maybe no. It depends on exactly what the macro does. If it
uses any feature that exists in Word 2003 but not in Word 2010, then
it will fail in some way.

Examples of such features include programmatically creating toolbars
and/or adding buttons and menus to them (because Word 2007 and 2010
use the ribbon instead of toolbars and menus); and the AutoSummary
feature and Microsoft Office Document Imaging (MODI), both of which
have been removed.

Also examine the code for hard-coded use of file name extensions. Word
2003 uses only ".doc" and ".dot". While Word 2010 can deal with those
extensions for "compatibility mode" documents and templates, the newer
format uses ".docx" and ".dotx" for macro-free files and ".docm" and
".dotm" for macro-containing files. Similar problems might crop up
with hard-coded file paths if you've changed from Windows XP to Vista
or Windows 7.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 

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