Thank you for this! I managed to use this in conjunction with exporting a cell range as a jpeg image! It's a little warped (so not sure what I'm doing wrong there) but it saved to the desktop PERFECTLY! Thanks again! Super helpful! :D
HI Marcus, How to Save File as XLSX/XLSM to desktop using Command button. i have total 4 Sheets , I just want to Save 3 sheets , the command Button stays in empty Sheet.1, Any leads ? please
There are plenty of examples of precisely this on my website. See if the following works for you. www.thesmallman.com/copy-sheet-and-save All the very best.
Hi Rayan - yup good question. All you have to do if you want to save each sheet to the desktop is create a sheet reference and loop through each sheet in the WB. I would write it something like this; Dim sh As Worksheet For Each sh In Sheets 'Your Code Here :) Next sh Now all you have to worry about is where do you put the saving reference for each new sheet. I would use the sheet name as the point of save or a dedicated cell that had some unique identifier. Hope that helps. Marcus
Thank you for this! I managed to use this in conjunction with exporting a cell range as a jpeg image! It's a little warped (so not sure what I'm doing wrong there) but it saved to the desktop PERFECTLY! Thanks again! Super helpful! :D
Glad it helped!
Super helpful. Thanks for the great content! 👍🏼👍🏼
Thanks Marus. This is very helpful.
You are most welcome Sumeet.
HI Marcus, How to Save File as XLSX/XLSM to desktop using Command button. i have total 4 Sheets , I just want to Save 3 sheets , the command Button stays in empty Sheet.1, Any leads ? please
Sir please want a video for Create a Macro to save Specific Worksheets in specific folder
There are plenty of examples of precisely this on my website. See if the following works for you.
www.thesmallman.com/copy-sheet-and-save
All the very best.
How can I loop that with other sheets?
Hi Rayan - yup good question. All you have to do if you want to save each sheet to the desktop is create a sheet reference and loop through each sheet in the WB. I would write it something like this;
Dim sh As Worksheet
For Each sh In Sheets
'Your Code Here :)
Next sh
Now all you have to worry about is where do you put the saving reference for each new sheet. I would use the sheet name as the point of save or a dedicated cell that had some unique identifier.
Hope that helps.
Marcus
Marcus Small Thanks and I really appreciate it.
Sir, How it works on protected sheet
You have to unprotect the sheet with code, then run the code, then reprotect the sheet after the code is run.
This code are fit when you use other laptop or computer right?
Yes works on any type of computer.