B
Bob Barnes
Resuling in a Save failed...I use this code w/ other Excel
"template" files.
It fails in the "...SaveAs filename:=IPFile..." below.
B = Month(BegThree): KK = Day(BegThree): C = Year(BegThree)
X = Month(EndThree): W = Day(EndThree): F = Year(EndThree)
M = "Def_" & Right("0" & B, 2) & Right("0" & KK, 2) _
& Right(C, 2) & "_" & Right("0" & X, 2) & Right("0" & W, 2) _
& Right(F, 2)
IPFile = "C:\BobDev\" & M & ".xls"
bIPFile = True
If Dir(IPFile) <> "" Then Kill IPFile
objXLApp.ActiveWorkbook.SaveAs filename:=IPFile, FileFormat:= _
xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Ideas? TIA - Bob
"template" files.
It fails in the "...SaveAs filename:=IPFile..." below.
B = Month(BegThree): KK = Day(BegThree): C = Year(BegThree)
X = Month(EndThree): W = Day(EndThree): F = Year(EndThree)
M = "Def_" & Right("0" & B, 2) & Right("0" & KK, 2) _
& Right(C, 2) & "_" & Right("0" & X, 2) & Right("0" & W, 2) _
& Right(F, 2)
IPFile = "C:\BobDev\" & M & ".xls"
bIPFile = True
If Dir(IPFile) <> "" Then Kill IPFile
objXLApp.ActiveWorkbook.SaveAs filename:=IPFile, FileFormat:= _
xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Ideas? TIA - Bob