Hi =?Utf-8?B?RGF2aWQgTWFjZG9uYWxk?=,
> There seem to be quite a few posts about trying to get Word and Excel to work
> together when the original files have been compiled in Office 2003 and users
[quoted text clipped - 8 lines]
> an excel macro from Word or am I coming up against the same incompatibility
> of versions ?
Application.Run should work. Since you don't describe how it doesn't for you,
that's difficult to trouble-shoot. But from experience I advise you to try all
the variations on how to specify the macro (file name, module name, etc.) And to
ask in the excel.programming newsgroup for help on that.
Another way to approach your problem, though, would be to test the version of
Excel you've hooked into and branch the code accordingly (If or Select Case).
Then use late-binding to address the object model, using only code that's
appropriate to the individual version. Late-binding means you declare all Excel
variables as Object (Dim wb as Object 'not Excel.Workbook) and remove the
reference to Excel from the project.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :-)