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

Grab Cell Data from open Excel Document

Status
Not open for further replies.

sgfromny

Technical User
Jan 17, 2003
120
0
0
US
I'd like to have some code that can see an existing and open excel document, go to pre-named cells and retrieve the data to then be put into an access table.

I want to do this from Access.. I know how to send the data to the tables. I just need to know how to get access to see the open excel sheet.

Help appreciated!
 
Have a look at the GetObject function:
Set myXL = GetObject(, "Excel.Application")
MsgBox myXL.Range("pre-named").Value

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top