Discussion Locked
0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have an Excel Macro that reads in a .CSV file, and does formatting of the reulting spreadsheet. I then want to save the spreadsheet, without the formatting macro, as a .XLS file to send to users. How do I do this?
3 replies
by dklippert
One way would be to export the sheet to another workbook. Right click the sheet tab and choose Move or copy and then choose a new workbook or export to an existing one. Be sure to check copy, or the sheet will be moved.
This action can be part of the macro:
Sub CopySheet()
Sheets("Sheet1").Select
Sheets("Sheet1").Copy Before:=Workbooks("fred.xls").Sheets(1)
ActiveWorkbook.Save
End Sub
by lewis_rs
Poster rated this answer
by lewis_rs
This question was closed by the author
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
1 helpful
3 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies
Discussion Locked
Best Ways to Improve Website Visibility
0 helpful
5 replies