Thanks for the help. Here's the final product...
For i = 1 to 42
If Not SkipSheet(i) Then
Set objExcel = CreateObject("Excel.Application")
objExcel.Workbooks.Open "C:\Temp\0508_0" & Right("0" & i, 2) & ".xlsm"
WScript.Sleep 3000
objExcel.DisplayAlerts = False...
Thanks again guitarzan. It's possible that the rest of the code doesn't work right which is causing the problem, since yes, those filenames are correct. I'll give you CASE scenario a try and see what happens.
Combo, I have a macro inside the xlsm file that when Excel opens (and other stuff...
Don't know if that's the right way to put it, but hopefully I can describe it better. I have a directory with 42 spreadsheets in it. I have a script that will open a spreadsheet (in xlsm format), save it out as an xlsx file, then save/close. Here's what I have...
For i = 6 to 9
Set objExcel...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.