Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Please help...................................
Public Sub q() On Error GoTo MError Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.workbooks.Open("C:\Test.XLS") Set xlSheet = xlBook.Sheets("Sheet1") Set xlSheet = Nothing xlBook.Save xlBook.Close Set xlBook = Nothing xlApp.Quit Set xlApp = Nothing End MError: MsgBox (Err.Description), vbCritical End Sub -- Please type david.com inplace of no.thanks. Sorry for the inconvenience but fed up of spam mail. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dave
it would help if you told us what you want to happen and what it's not doing. Regards Trevor "Dave" wrote in message ... Please help................................... Public Sub q() On Error GoTo MError Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.workbooks.Open("C:\Test.XLS") Set xlSheet = xlBook.Sheets("Sheet1") Set xlSheet = Nothing xlBook.Save xlBook.Close Set xlBook = Nothing xlApp.Quit Set xlApp = Nothing End MError: MsgBox (Err.Description), vbCritical End Sub -- Please type david.com inplace of no.thanks. Sorry for the inconvenience but fed up of spam mail. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trying to work with files copied from Office 2004 (MAC) in Office | Excel Worksheet Functions | |||
Does microsoft office 2003 work with windows vista? | Excel Discussion (Misc queries) | |||
Need Office with Excel for windows 98 | Excel Discussion (Misc queries) | |||
Can Office 97 be used in windows xp? | Setting up and Configuration of Excel | |||
Office 2000 and Windows XP | Excel Discussion (Misc queries) |