Opening a specific Excel spreadsheet from Access

H

Hilo

How do I open a specifice Excel spreadsheet from Access
via code behind forms (click a button)? Any help would be
appreciated.

Hilo
 
N

nath

-----Original Message-----
How do I open a specifice Excel spreadsheet from Access
via code behind forms (click a button)? Any help would be
appreciated.

Hilo
.
Dim xl as object

set xl = createobject("excel.application")
xl.visible = true
xl.workbooks.open (filename)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top