Excel VBA - Copy worksheet to a new workbook and rename

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

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

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

    Omg, such a life saver!!! After hours and hours looking at various videos on this topic, I finally understand. Great explanation and simple straightforward code! THANK YOU!

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

      My pleasure. Thanks for watching and have a nice day.

  • @Troy-Echo
    @Troy-Echo 2 года назад +1

    Thanks...found this by mistake but it was exactly what I was looking for.

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

      My pleasure. Thanks for watching and have a nice day.

  • @mcork19
    @mcork19 Год назад

    Exactly what I needed. Thank you!

    • @ahsingtv
      @ahsingtv  Год назад

      My pleasure. Thanks for watching and have a nice day.

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

    Very Good
    Thanks

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

      Thanks!
      My pleasure. Thanks for watching and have a nice day.

  • @shabarilucky5
    @shabarilucky5 Год назад

    Thanks for sharing this, can you help us with code where we have more sheets in workbook and form which we want to save only selected sheets in workbook and rename the sheets.

    • @ahsingtv
      @ahsingtv  Год назад

      Hi, Shabari. Unfortunately, we could not only save a sheet in a workbook with couple of sheets. However, we could export the selected sheet and save it as a new workbook, i.e. a workbook with single sheet.
      Thanks for watching and have a nice day.

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

    nice you,explain it very well, how about if i want only the specific sheet to copy?

    • @ahsingtv
      @ahsingtv  2 года назад +2

      Thanks!
      Instead of using "For each ws ..." and "ws.copy", may try "Sheet?.Copy". Hope this helps.
      Thanks for watching and have a nice day.

  • @PappaG
    @PappaG 5 месяцев назад

    I have two sheets ("Control" and "Update") that i would like to not be copied to the folder path.
    Is it possible to exclude worksheets from the copy?

    • @ahsingtv
      @ahsingtv  5 месяцев назад

      Hi. Can use 'If' statement to exclude them.
      Thanks for watching and have a nice day.

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

    Nice

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

      Thanks!
      Thanks for watching and have a nice day.

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

    Compile error t Sub CopySheet()
    why ? Can u help me?

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

      Hi. Could you tell me what kind of compile error you got in more detailed? There are a few types of compile errors.
      Thanks for watching and have a nice day.

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

    How to save as pasted values? Please help

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

      Hi Singh. Do you mean to make a copy of a worksheet without formatting/formulas?
      If yes, may consider to clear formats after created a copy, then copy contents and paste as special.
      To illustrate this better, I have a video for you at ruclips.net/video/JL01OD0sSDk/видео.html.
      Hope it helps.
      Have a nice day.