Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Dll from excel or access

Status
Not open for further replies.

sarduspater

Programmer
Jan 31, 2010
38
IT
Using vb6 I created a DLL with many functions I use in vba.
Now I would know wich program is calling my DLL (within it).
If excel is calling it, GetModuleFileName function of kernel32.dll returns c:\..\..\excel.exe, but I would know wich workbook is running (Application.ActiveWorkbook.FullName).
Same problem is within Access (mdd or accdb name).

Any suggest?

Thanks in advance.

Candu si tene su 'entu es prezisu bentolare.
 
Maybe it's a forum wrong section.
I move question to Visual Basic(Microsoft) ActiveX Controls and DLLs Forum.

Candu si tene su 'entu es prezisu bentolare.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top