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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get unique identifier from Desktop

Status
Not open for further replies.

MacroAlan

Programmer
Dec 4, 2006
134
US
I NEED TO EXPLAIN WHAT I am doing before I know the right words to ask my question.

In our application in Access VBA, we do a bunch of stuff preparing the data; then open an Excel template and put in some of the data. Next my program calls a macro within the Excel. After it does its thing, Access takes back control and I do more stuff.

There may be multiple instances of Excel open/or opened. I think it is a call to the API to get the unique identifier for each instance of Excel when I start it.

Can anybody tell me what I need to call in the API? [bigears]

Thanks


Alan
[smurf]
 
then open an Excel template
What is the access code doing that ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Looks like something got cut off -- I was logged into server at office.

Since I am taking back control in Access from Excel and grabbing it again, I want to be sure that I am grabbing the correct instance of Excel each time. Is there a way to capture the Instance ID at the beginning of my procedure?


Alan
[smurf]
 


Yes, Set a Workbook Object when you open the workbook and reference that object. Make sure that the SCOPE of that object is defined appropriately.

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top