Hello all,
I'm used to Macro program writing but I'm new to VBScript Script Files and I cant seem to find what can be wrong no matter where I look.
I have a problem with running this vbs file, getting this error:
Line: 7
Char: 1
Error: "Object required: 'application'
Code: 800A01A8
Any ideas why this could be?
Thank you!
I'm used to Macro program writing but I'm new to VBScript Script Files and I cant seem to find what can be wrong no matter where I look.
I have a problem with running this vbs file, getting this error:
Line: 7
Char: 1
Error: "Object required: 'application'
Code: 800A01A8
Code:
Dim xlApp
Dim xWb
Set xlApp = CreateObject("Excel.Application")
Set xWb = xlApp.Workbooks
For each xWb in application.Workbooks
If not xWb.readonly and windows(xWb.name).visible then
xWb.save
End if
Next
Any ideas why this could be?
Thank you!