How to create a Reference with VBA
I just got really excited here... When trying to send spreadsheets through
different versions of Lotus Notes or working with different versions of our
3270 emulator I run into problems with compile errors because some of the
users' machines do not have the references they need. With that in mind I
have two questions:
1) How can I identify the global unique ID value of the reference objects?
2) Could I have some code that would test each machine for different
reference IDs and apply the proper one? (if so, a small sample would be
appreciated)
Thanks for the epiphany, Tom!!!
patrick
"Tom Ogilvy" wrote:
for word it would be:
Dim s as String
s = "{00020905-0000-0000-C000-000000000046}"
Thisworkbook.VBProject.References.AddFromGuid s,0,0
--
Regards,
Tom Ogilvy
"Gérard Ducouret" wrote:
Hello,
How can I create a Reference (Such as Tools / Reference in a VBA module) to
Microsoft Word 9.0 or to Microsoft Word 11.0, with VBA, then remove the
reference at the end of the procedure?
Thanks ahead!
Gérard
|