Save this as test.vbs and it will run. Schedule it and it will not.
Create a blank test.xlsx Office 2007 first.
Any ideas?
Thanks
-----------------------------------------------------
begin
Sub begin
Set excel = CreateObject("Excel.Application")
excel.DisplayAlerts=false
Set wb = excel.workbooks.open("C:\test.xlsx")
wb.sheets(1).cells(1,1).value="hello"
wb.save
wb.Close
excel.Quit
End Sub
Create a blank test.xlsx Office 2007 first.
Any ideas?
Thanks
-----------------------------------------------------
begin
Sub begin
Set excel = CreateObject("Excel.Application")
excel.DisplayAlerts=false
Set wb = excel.workbooks.open("C:\test.xlsx")
wb.sheets(1).cells(1,1).value="hello"
wb.save
wb.Close
excel.Quit
End Sub