Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro that saves the current worksheet only (fileformat=xlNormal),
and automatically generates a new filename, but formatting is lost, so reprinting the sheet looks completely different from the original. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What file exttension are you saving XLS or CSV? CSV will not save the
formatting. I think your problem is the file extension you are using. "Genesis" wrote: I have a macro that saves the current worksheet only (fileformat=xlNormal), and automatically generates a new filename, but formatting is lost, so reprinting the sheet looks completely different from the original. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
this is just a guess:
Activeworkbook.SaveAs "C:\Mybook", fileformat:=xlNormal note the colon before the equal sign. If I don't have the colon, I get an error, but perhaps for you it saves it as some kind of text file. -- Regards, Tom Ogilvy "Genesis" wrote: I have a macro that saves the current worksheet only (fileformat=xlNormal), and automatically generates a new filename, but formatting is lost, so reprinting the sheet looks completely different from the original. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to save current sheet | Excel Discussion (Misc queries) | |||
Losing Conditional Formatting after Save | Excel Discussion (Misc queries) | |||
Save Current Sheet Only | Excel Discussion (Misc queries) | |||
Save current sheet to new file | Excel Discussion (Misc queries) | |||
Can't save chart as object in current sheet | Charts and Charting in Excel |