Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Adding a DLL to Excel (2003) Object Browser

How do I add a reference to a new DLL to my object brower to be able to use
in in VBA 2003?

Mac in Berkeley, CA


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Adding a DLL to Excel (2003) Object Browser

You need to declare the library outside a sub routine like this

' Declare wininet.dll API Functions
Public Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias
"FtpSetCurrentDirectoryA" _
(ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean

Public Declare Function FtpGetCurrentDirectory Lib "wininet.dll" Alias
"FtpGetCurrentDirectoryA" _
(ByVal hFtpSession As Long, ByVal lpszCurrentDirectory As String,
lpdwCurrentDirectory As Long) As Boolean

Sub Mysub()


your code


exit sub


"Mac Lingo" wrote:

How do I add a reference to a new DLL to my object brower to be able to use
in in VBA 2003?

Mac in Berkeley, CA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Adding a DLL to Excel (2003) Object Browser

It depends on what type of dll you mean. Try Tools / References, scroll down
and tick the "description" of the dll. Note this is not normally the file
name.

If not in the list use "browse" to file. If it doesn't 'take' either it's
not registered on your system or it's not a dll that requires a reference
nor one you'll see in Object Browser, refer to Joel's example.

Regards,
Peter T


"Mac Lingo" wrote in message
...
How do I add a reference to a new DLL to my object brower to be able to
use in in VBA 2003?

Mac in Berkeley, CA



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do web query excel 2003 from site in browser? Sayville Library Excel Discussion (Misc queries) 0 May 3rd 06 08:34 PM
Object Browser does what? davegb Excel Programming 6 June 27th 05 06:12 PM
Object Browser Help [email protected] Excel Programming 0 January 6th 05 08:19 PM
Object Browser Help [email protected] Excel Programming 0 January 6th 05 08:18 PM
excel 2003 browser control?? Fred Jacobowitz Excel Programming 0 August 4th 04 04:14 PM


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

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

About Us

"It's about Microsoft Excel"