Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Why doesn't this work in Windows NT & MS Office 97

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Why doesn't this work in Windows NT & MS Office 97

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to work with files copied from Office 2004 (MAC) in Office rgranell Excel Worksheet Functions 3 June 19th 08 04:31 PM
Does microsoft office 2003 work with windows vista? ploree Excel Discussion (Misc queries) 3 May 7th 07 04:15 PM
Need Office with Excel for windows 98 Green graduate student Excel Discussion (Misc queries) 2 February 14th 05 11:51 PM
Can Office 97 be used in windows xp? Jack in the UK Setting up and Configuration of Excel 0 December 22nd 04 12:02 AM
Office 2000 and Windows XP JPL Excel Discussion (Misc queries) 0 December 2nd 04 10:39 PM


All times are GMT +1. The time now is 02:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"