Save File to Desktop VBA

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2024

Комментарии • 18

  • @jamieharper5665
    @jamieharper5665 3 года назад +1

    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

  • @danieldauber8335
    @danieldauber8335 2 года назад +1

    Super helpful. Thanks for the great content! 👍🏼👍🏼

  • @OneSumeet
    @OneSumeet 3 года назад +1

    Thanks Marus. This is very helpful.

    • @thesmallman
      @thesmallman  3 года назад

      You are most welcome Sumeet.

  • @manin4568
    @manin4568 3 года назад

    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

  • @dhirendranathmandal6949
    @dhirendranathmandal6949 2 года назад

    Sir please want a video for Create a Macro to save Specific Worksheets in specific folder

    • @thesmallman
      @thesmallman  2 года назад

      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.

  • @rayanaltayyari6450
    @rayanaltayyari6450 4 года назад +1

    How can I loop that with other sheets?

    • @thesmallman
      @thesmallman  4 года назад +1

      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

    • @rayanaltayyari6450
      @rayanaltayyari6450 4 года назад +1

      Marcus Small Thanks and I really appreciate it.

  • @siddhartharoy6248
    @siddhartharoy6248 2 года назад

    Sir, How it works on protected sheet

    • @thesmallman
      @thesmallman  2 года назад

      You have to unprotect the sheet with code, then run the code, then reprotect the sheet after the code is run.

  • @yosef-yosef9414
    @yosef-yosef9414 4 месяца назад +1

    This code are fit when you use other laptop or computer right?

    • @thesmallman
      @thesmallman  4 месяца назад

      Yes works on any type of computer.