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

Opening excel using VB

Status
Not open for further replies.

eussias

Programmer
Joined
Sep 25, 2001
Messages
97
Location
AU
I have an open file dialog box which, when a certain file is selected, the application associated with the file will launch, and the file will be opened. It's working fine except for Excel files. Does anyone know why this would be happening?





 
Does the 'Excel file' open in Excel when you double click it in explorer?
 


Call ShellExecute(0&, "Open", sExcelFile, vbNullString, vbNullString, vbNormalFocus)

If that still does not work you could try automation

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top