Message 1 of 5
Adding dll-reference unsing VBA

Not applicable
06-24-2004
03:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is it possible to add a DLL-reference to a VBA module in an inventor
document WITHOUT opening the file, selecting "Tools" - "References" etc?
I want to "modernize" my VBA code in a lot of IDW files, and need to add the
same, new reference to each IDW.
I can check to see if the reference is present using a check like this:
For Each oRef in oDoc.VBAProject.VBProject.References
if oRef.Name = "CommonMacros" then bNew = True
Next oRef
etc...
But I can't find a way to "add" the missing one...
Is it possible to use a Declare statement to do the job? Also if the "DLL"
is default.ivb ??
I am stuck! Any hints or workarounds?!?
/IBMo