PC Review


Reply
Thread Tools Rate Thread

Adding a DLL to Excel (2003) Object Browser

 
 
Mac Lingo
Guest
Posts: n/a
 
      8th Dec 2008
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 With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      8th Dec 2008
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
>
>
>

 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      8th Dec 2008
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" <(E-Mail Removed)> wrote in message
news:Sof%k.10936$(E-Mail Removed)...
> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
object browser, and adding and deleting charts keith Microsoft Excel Programming 2 24th Apr 2009 07:01 PM
Re: Wierdness on Excel Object Browser Chip Pearson Microsoft Excel Programming 2 17th Feb 2009 10:56 PM
Error while adding browser object to form in Access =?Utf-8?B?RnJlZWxhbmNlcg==?= Microsoft Access VBA Modules 0 20th Feb 2007 01:15 AM
Adding summary to object browser? tomb Microsoft VB .NET 6 8th Feb 2006 08:31 PM
Bug in object browser? (VB 2003) Armin Zingler Microsoft VB .NET 2 10th Jul 2003 12:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:55 AM.