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
@thesmallman3 жыл бұрын
Glad it helped!
@manin45683 жыл бұрын
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
@rayanaltayyari64504 жыл бұрын
How can I loop that with other sheets?
@thesmallman4 жыл бұрын
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
@rayanaltayyari64504 жыл бұрын
Marcus Small Thanks and I really appreciate it.
@siddhartharoy62482 жыл бұрын
Sir, How it works on protected sheet
@thesmallman2 жыл бұрын
You have to unprotect the sheet with code, then run the code, then reprotect the sheet after the code is run.
@dhirendranathmandal69492 жыл бұрын
Sir please want a video for Create a Macro to save Specific Worksheets in specific folder
@thesmallman2 жыл бұрын
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.
@yosef-yosef94145 ай бұрын
This code are fit when you use other laptop or computer right?