joe loyzaga
FRProject
Advanced User
Offline
Posts: 515
I live in Sydney
|
 |
« on: March 03, 2010, 10:45:50 PM » |
|
opens an excel worksheet - but when I call xl.quit it stills prompts with a dialog box whether to save - but I don't want it EVER to save - is there a way to open read only? or force no save?
Set xl = CreateObject("Excel.Application") If Err.Number <> 0 Then MsgBox "Failed to initiate Excel." & vbCrLf & "This operation requires Excel to be installed.", vbCritical Exit Function End If
' Open specified workbook xl.Workbooks.Open(sFileName) If Err.Number <> 0 Then MsgBox "Specified Excel file '" & sFileName & "'." & vbCrLf & "Make sure the file name is correct.", vbCritical xl.Quit
|