ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to export a worksheet and save as new file (https://www.excelbanter.com/excel-programming/329960-macro-export-worksheet-save-new-file.html)

Mike_M

Macro to export a worksheet and save as new file
 
I need a quick macro to attach to a button on each worksheet within a
workbook with multiple worksheets, which will export that workbook into
a new file which the user will then be prompted to save as a new file
and to choose the location it is saved in. I know this is easy, I'm
just being lazy today!

Thanks in advance

Mike


Bob Phillips[_7_]

Macro to export a worksheet and save as new file
 
look at GetSaveAsFilename method in help

--
HTH

Bob Phillips

"Mike_M" wrote in message
ups.com...
I need a quick macro to attach to a button on each worksheet within a
workbook with multiple worksheets, which will export that workbook into
a new file which the user will then be prompted to save as a new file
and to choose the location it is saved in. I know this is easy, I'm
just being lazy today!

Thanks in advance

Mike




Mike_M

Macro to export a worksheet and save as new file
 
Thanks - much appreciated

Mike



All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com