LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default implicit file reference


Hello,

I'm declaring a DLL file (one of my own creation) in VBA with an
explicit directory reference thus:

Private Declare Function GetQuote Lib _
"C:\Documents and Settings\Pooka\Desktop\d3\StockMarket.dll" () As
Long

Since this isn't a standard .dll, it is in the same directory as the
..xls file that is calling it. My desire is to be able to send the .xls
and .dll files together to a friend and have them work together in any
directory without having to modify the VBA decleration. I tried the
following in hopes it would just look in the same directory as the .xls
file:

Private Declare Function GetQuote Lib _
"StockMarket.dll" () As Long

But it said it couldn't find the .dll file. Is there any way I can get
around this so that it won't break the moment I move the files into
another directory? (I have tried using CurDir, but the "working"
directory which this function returns is not the same as the directory
containing my .xls file.)

Regards,

Matt


--
Tuee
------------------------------------------------------------------------
Tuee's Profile: http://www.excelforum.com/member.php...o&userid=31344
View this thread: http://www.excelforum.com/showthread...hreadid=510327

 
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
Linking to another file using file reference typed cell Steven Excel Worksheet Functions 3 April 5th 08 03:15 AM
Possible to chart data for dates implicit within a range? Nechama Charts and Charting in Excel 1 September 1st 05 10:11 PM
implicit activation jgreif Excel Programming 0 May 26th 05 01:59 AM
Numeric content in one cell ( implicit formula ) and the result in another one PeDevillers Excel Discussion (Misc queries) 7 March 2nd 05 07:40 AM
How do I reference external data from a file, file name found in . Clux Excel Discussion (Misc queries) 1 February 10th 05 10:52 PM


All times are GMT +1. The time now is 07:11 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"