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

Launch Excel from Access macro 1

Status
Not open for further replies.

ETID

Programmer
Jul 6, 2001
1,867
US
I got a brain lock....does anyone know the command line, and switches (if any),to start a particular XLS from an Access macro?


:cool:
 
Not sure, but I think it's something like this:
Code:
    DDEInitiate "Excel", "C:\My Documents\MyFile.xls"
 
Dim objExcel As Object
Set objExcel = New Excel.Application
With objExcel
'Open the file
.Workbooks.Open FileName:="Your File Name Here"
'Make it visible
.Visible = True
End With
'code here...
Set objExcel = nothing
Tyrone Lumley
augerinn@gte.net
 
Thanks DBguy:

That did the trick.....


and thx to logius, i haven't had time to try your approach yet, but it may come in handy.

:-D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top