My code opens a unicode .xls file exported from SAP, does some filtering and color-coding of cells, then attempts this:
.SaveAs Filename:=srcpath & Format(Date, "mm-dd-yyyy") & "file.xls", FileFormat:=xlNormal
Also tried
.SaveAs Filename:=srcpath & Format(Date, "mm-dd-yyyy") & "file.xls", FileFormat:=xlWorkbookNormal
Also tried
.SaveAs Filename:=srcpath & Format(Date, "mm-dd-yyyy") & "file.xls", FileFormatNum:=-4143
I know the string “srcpath” and dating bit are okay since the save happens, but I get no formatting because it’s still a unicode file! This is in 2003 btw. Any ideas will be much appreciated!
The error was elsewhere in my code, one of those situations where the debugger misleads you because there’s an if statement or something. For the record, this works just fine in 2003:
where “c” is some string you want in the filename; in my case today’s date.