Florent
Mechanical
- Feb 18, 2007
- 32
Good Morning ;
In my macros, I'm using some home-made DLL.
I want that my macros aren't saved with fixed path on used DLL. Because, this macro are duplicated on different sites, and I want to manage them simply (eg : update by replace the swp file).
I tried to add this code :
But the call of a function or the use of a type contained in the external DLL, aren't accepted by compilator.
Then, I tried to add compilation instruction like "#if" but I didn't manage to find the equivalent of the Access VBA call :
to execute the instructions which were ignored during the first compilation by "#if" statment.
Many thanks for your help.
SW2007 SP5
Worksatation HP wx4300 2GB
NVidia Quadro FX 3450
In my macros, I'm using some home-made DLL.
I want that my macros aren't saved with fixed path on used DLL. Because, this macro are duplicated on different sites, and I want to manage them simply (eg : update by replace the swp file).
I tried to add this code :
Code:
Application.VBE.VBprojects(1).References.AddFromFile "FullPath"
But the call of a function or the use of a type contained in the external DLL, aren't accepted by compilator.
Then, I tried to add compilation instruction like "#if" but I didn't manage to find the equivalent of the Access VBA call :
Code:
Application.VBE.VBprojects(1).SetOption "Conditional Compilation Arguments", "AcceptLibraryCode = False"
RunCommand acCmdCompileAndSaveAllModules
Many thanks for your help.
SW2007 SP5
Worksatation HP wx4300 2GB
NVidia Quadro FX 3450