Upgrading to Word XP - document with macros

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I open in Wod XP document with macros that was created in 97 and try to
compile the project, I get a compile error "can't find library", because
reference to "hnormal" is missing. When I remove "hnormal" from the
references, everything works fine. The problem is that I have lots of such
documents and i'd like to automize the process. Is it possible to edit
preferences from code? Is there some oher solution? Thank you.
 
Hi =?Utf-8?B?TGVv?=,
When I open in Wod XP document with macros that was created in 97 and try to
compile the project, I get a compile error "can't find library", because
reference to "hnormal" is missing. When I remove "hnormal" from the
references, everything works fine. The problem is that I have lots of such
documents and i'd like to automize the process. Is it possible to edit
preferences from code? Is there some oher solution?
A better place to ask this would be one of the word.vba newsgroups; this is an
end-user group.

Theoretically, it's certainly possible to manage references via code. In
practice, it can be a bit of a hair-puller. The necessary commands are in the
VB Extensibility library (VBE). It's generally a bit difficult to access the
help, but usually, if you type ActiveDocument.VBProject then press F1 you can
get into it.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
Back
Top