VBA to Delete all Sheets except Specific Sheet - Excel VBA Tutorial

Поделиться
HTML-код
  • Опубликовано: 6 мар 2020
  • This VBA Tutorial explains how to delete all worksheets except specific sheets using vba code. In Excel VBA, we can automate to delete multiple sheets using VBA Programming.

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

  • @rahul279gadakar3
    @rahul279gadakar3 4 года назад +2

    Sir,
    I am your fan
    U solved my biggest prob in excel

  • @MohAboAbdo
    @MohAboAbdo 4 года назад +2

    Thank you very much for this great video.

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

    Thank You for your Support by this Video
    This Video Very Useful because after watching video I solved my query

  • @rodrigohonorio4978
    @rodrigohonorio4978 Год назад +1

    awesome, thanks

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

    Hi. Thanks for the help. I'd appreciate if you could help me with this: I have a bunch of excel files. I want to combine these files, rename the first sheet same as the file name, delete the subsequent 2 sheets opened automatically (sheet 2, and 3). Is it possible to do this on VBA? If yes can you help with the code? Thanks.

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

    Good program...

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

    How can we run this code automatically when we close the workbook

  • @sridharkrishnappanavanerth3388
    @sridharkrishnappanavanerth3388 4 года назад

    Sir i need your urgent help. I am working on a inventory project which is macro enabled with 11 worksheets. I have to save as a specific sheet that is invoice template to another workbook as excel file(.xlsx) . after save as the workbook should contain only Invoice Template worksheet. And after all the process my Inventory Template from original Inventory project workbook should be open.

    • @ExcelDestination
      @ExcelDestination  4 года назад

      for any urgent project, you can write to exceldestination@gmail.com

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

    vba code to remove duplicate values in multiple sheets in single excel workbook?

  • @vipulprajapati2797
    @vipulprajapati2797 3 месяца назад

    Hello Sir,
    Agar muje ek specific column every sheets me se delete karni ho to is it possible? Suppose meri 100 Sheets he usme se muje C column delete karna he simultenously to is it possible?

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

    It would be great if you include the practice file too

    • @ExcelDestination
      @ExcelDestination  4 года назад +2

      you can send me email at exceldestination@gmail.com , I will send you the file. This code is very short. you can pause and note down. This will enable you to practice also.

  • @nguyenchung4795
    @nguyenchung4795 4 года назад +2

    Can you code for deleting all sheets except for 2 specific sheets? Thanks.

    • @ExcelDestination
      @ExcelDestination  4 года назад +4

      You can just add one more condition and same code can be used like. If worksheets(I).name "abc" and worksheets(i).name "xyx". something like this.

    • @nguyenchung4795
      @nguyenchung4795 4 года назад

      Thanks a lot. It’s very useful.

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

      @@ExcelDestination Thanks

    • @yogeshsawant4527
      @yogeshsawant4527 4 года назад

      Sir can we use the same for 5 sheets. I mean I want to keep 5 sheets and delete rest of sheets

    • @AkshayKumar-wy5ks
      @AkshayKumar-wy5ks 3 года назад

      Below you mentioned it is not working if we want to keep more than 1 sheet. Could you please write a code.that would help.

  • @Lone.wolf004
    @Lone.wolf004 2 года назад

    First, Thank you sir for this. But I have a question. What if there are two specific sheet that I dont want to delete. How can I do that. Thank you. more power!

    • @user-jp3kv8os4p
      @user-jp3kv8os4p 4 месяца назад

      i also want this answer, sir please reply

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

    Ye to sahi he par muje specific time or days ke bad automatic delit kar na he to kya jare

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

    Sir aise hi multi sheets ke sheet nhi row delete ho pleases