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

What is the code to open worksheet with acces ?

Status
Not open for further replies.

breukelen

Technical User
Oct 31, 2001
54
NL
Good morning,

I used

oleapp=createobject("Excel.Application")
oleapp.visible=.T.
oleapp.workbooks.open("c:\my.xls")
oleapp.visible=.T.

This works o.k. , it opens the workbook with sheet1.
What is the code,so that it opens for instance with sheet2
Thank in advance for your help.

Gunter

 
Have a look at the Working Across Applications topic in the Access Help file. This may help you.


HTH

Lightning
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top