Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How to do this with VBA

-I use a file .dll in my program: Alt+F11 - Tools/References/Browse... find
the path of dll and click OK.
-How to do this with some code in VBA
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default How to do this with VBA

Hello
ThisWorkbook.VBProject.References.AddFromFile "C:\Mydll.dll"

Depending on your Excel version, you may have to check for Security options
(Tools, Macro, Security), to trust your code.

HTH
Cordially
Pascal

"voda" a écrit dans le message de news:
...
-I use a file .dll in my program: Alt+F11 - Tools/References/Browse...
find
the path of dll and click OK.
-How to do this with some code in VBA
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How to do this with VBA

Hello!
Thanks for your anwsers.
I use your code but get error:"Run-time error '429'. ActiveX component can't
create object"
Help me


"papou" wrote:

Hello
ThisWorkbook.VBProject.References.AddFromFile "C:\Mydll.dll"

Depending on your Excel version, you may have to check for Security options
(Tools, Macro, Security), to trust your code.

HTH
Cordially
Pascal

"voda" a écrit dans le message de news:
...
-I use a file .dll in my program: Alt+F11 - Tools/References/Browse...
find
the path of dll and click OK.
-How to do this with some code in VBA
Thanks




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"