Azra,
It was as simple as
ChDir ThisWorkbook.Path
I owe you ;-)
Let me play with this a little more, and 100 pts x A is yours.
calacuccia
Main Topics
Browse All TopicsI am developping VBA interface in Excel 97.
I have a fully documented DLL with 3 child DLL's and some archives which I need to use to call their functions. This is fully documented, no problem.
However, I am facing problems as the main dll, the 3 child dll's and the subarchives need to be located at the program directory.
In VB, the path of the executable will be used by VB to look for the necessary files.
The question is: how to indicate VBA that the path is the one in which the main xls or xla resides?
calacuccia
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
good to see this closed indeed :)
cal you're needed here > http://www.experts-exchang
Business Accounts
Answer for Membership
by: AzraSoundPosted on 2002-10-17 at 07:39:03ID: 7341282
You may try manually setting the current working path prior to calling the dll, since the working path is one in which the Windows should automatically search for the dll in. Example:
Dim strOldWorkingPath As String
'save current directory
strOldWorkingPath = CurDir$
'change to location of application/executable/dll
'(example - a subfolder called "support" where dlls are located)
ChDir Application.Path & "support"
'call your dll function
Call MyDLLFunction(Parameters)
'return to previous working directory
ChDir strOldWorkingPath