Rename All Sheets From A List... In One Step

Поделиться
HTML-код
  • Опубликовано: 29 сен 2019
  • There are many ways of renaming sheets in Excel.
    However if you have a large number of sheets you can rename all of them in one step following a list in the worksheet itself
    In this tutorial I show you how to name any number of Sheets in one step by using a List in the worksheet.
    You can Download the Exercise File and the code by clicking on the link here below.
    www.amazon.ca/clouddrive/shar...
    You can read the steps on my blogsite www.See-How.ca
    To book a corporate Training visit our website www.OfficeInstructor.ca
    For Microsoft Office Specialist Certifications - MOS - and to book an exam visit www.OfficeInstructor.com

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

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

    What a great clear video! You explain clearly what you do and what it means. That is what is helping many people to understand!

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

    THIS WAS AWESOMEEEEEEEEEEEEEEEEEEEEEEEEEEE! I am so glad I found this video Thank you! I was able to follow your instructions and I renamed 23 tabs in a matter of minutes. Much appreciated! God Bless you!!

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

    No extraneous chat. Short and directly to the point. Well done.

  • @alanmclean1399
    @alanmclean1399 4 года назад +3

    Fantastically clear explanation and helpful visuals that compliment it perfectly. Really helpful for a novice VBA user like me

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

    Thanks Nabil for this video. I am beginner in vba and your videos are helping me to learn the concepts slowly. Kudos, keep going 🙌

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

    Thank you very much for an easy to follow video. Very thankful to have found your channel. GREAT STUFF!!

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

    I am from bangladesh. I watch many vedio for this problem.. and finally I can say it's simple and very easier then others. Thanks a lot sir

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

    Thanks - Enjoy your clear explanation of all the details

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

    Stumbled on your channel. Love it, straight to the point useful videos. Thanks BTW, subscribed after the 3rd video.

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

    An excellent video, explained with much clarity and passion, thanks

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

    Great concise and step by steps instructions. Thank you very much.

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

    Amazing, very helpful. Thank you Nabil!

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

    Thank you Nabil for this amazing tutorial..
    Thanks for sharing..👍

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

    As a specialist teacher, I have to deal with multiple classes. I used to name each sheet as per your introduction. Thank you for this valuable and short method. Since I use all the sheets to insert students names, I named Sheet 1 as YEAR LEVELS created number of sheets according to the number of year levels. Thanking you again.

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

      I am glad Abdulkader my video helped you in your work situation

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

    great thank you so much, i helped me a lot with a workbook with more than 200 sheets :)

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

    Absolutely AMAZING! Thank you :)

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

    Great instructions. Thanks!

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

    Hi Nabil,
    Thank you for posting this extremely useful video.
    Your VBA explanation was clear & concise.

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

    Worked for me - excellent, thank you.

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

    THAT IS perfect... thanks a lot man.

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

    You are great man!! it was extremely helpfull and thanks for quick codding tutorial.

  • @shivaprasaderram8978
    @shivaprasaderram8978 7 месяцев назад

    Thank you so much this was helpful

  • @MdKhan-cc1qs
    @MdKhan-cc1qs 4 года назад +1

    I do not know abc of VBA. But by this video I am able to rename lot of excel sheets at a single click! Thanks

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

    Awesome way of explaining

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

    Very helpful. Thank you!

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

    Thank you very much, Sir!

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

    Amazing, you saved my lots of effort hurs.

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

    Thank you for sharing this, i have been looking to use this function for a week. It works great

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

    Dear many thanks

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

    Amazing work.

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

    when using F8 on the fourth row "Sheet" is highlighted as an error. compiler error message is "variable not defined"
    so when defined sheet as worksheets, it worked thanks for the amazing tutorial.

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

    interesting and timesaving video thanks a lot.....

  • @user-rc5li9jg1q
    @user-rc5li9jg1q Год назад

    After a few glitches I got it to work.
    I was trying to put days of the month, which excel automatically turns into a date, that cannot be a sheet name (no / allowed ).
    A couple of extra steps fixing the list and changing it to text and bingo 35 sheets done and rolled over for another month!
    I think I watched another of your videos for making a totals page from a range of sheets, so there was a "first", "Last", "totals" and "rename sheets"

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

    well done!

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

    Thanks so much!!!

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

    Great work, can you do the VBA for sheet name AND add sheets depending on how many rows contain data?

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

    Thank you sir from india

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

    Amazing!

  • @VoiceofEagleRecordingsVER
    @VoiceofEagleRecordingsVER 8 месяцев назад

    Amazing video

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

    Thank you bro

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

    Thank you so match, Sir.

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

    What a fantastic video! Could you provide me and advice how to limit to 30 caracters? I have a list taken from an other cell and it’s more than 30 ( limit for sheet name)

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

    Thanks sir for file & u r amazing sir

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

    This an excellent video, Nabil. I always wondered how to switch from one sheet to the next in order to change the names, and this is a fabulous workaround! As a language teacher, VBA makes me a bit nervous because I'm always worried about spacing, capitalization, and syntax - the same as I would while teaching composition. How do I learn the rules for VBA spacing, capitalization, indentation, etc? Keep up the fantastic work, Nabeel!

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

      Thank you for the nice comment... Did you Subscribe to my Channel? The Best Is Yet To Come

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

    Thank you sir, really it is great class for me.
    Sir, what steps in same situation in Google spreadsheets?
    Please guide me.

  • @taizoondean689
    @taizoondean689 Месяц назад

    Thank you

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

    Nice one

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

    Wow nice trick thanks allot

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

    This is a great job. I do not use VB, but the way you show it and the steps are clear to anyone. Thanks a lot for this video. I am always dealing with this issue, and finally found the answer. However, how to deal with multiple excel files for which, let's say, we need to rename sheets using the same group of names? Thanks.

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

      Performing an action on multiple files requires looping over workbooks

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

    Amazing

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

    it is great, sir

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

    Excellent

  • @epdiaz5813
    @epdiaz5813 7 месяцев назад

    This is an AMAZING VIDEO! I spent so much time on other videos and I would always get an error or a bug and could never figure it out. Thank you so much! I want to ask, how do I get the sheets to start renaming beginning from the second sheet, as I don't want Sheet 1 (The list of names) to be renamed as the first name on my list?

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

    thank for you

  • @abbasalishah7211
    @abbasalishah7211 3 года назад +2

    Sir what if we want "name" to be the date... I. E my workbook is named "july, 2021" and want to name sheets by date for every single day. Pls guide

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

    Great

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

    Super and easy

  • @berthony65
    @berthony65 10 месяцев назад

    Good day, Nabil, I am trying to follow along but I do not have the same Excel version you have, which I believe is a problem. Our tool bars are different and I also do not have access to visual basic editor. Is there another way to range the a1 column and sheets? Thanks

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

    Great video, but i wondering if I want the sheet where the list of names don't to be named with the code how to do this?

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

    Very nyc

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

    good 👍👍

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

    hi works great but if you want to update say 5 name out of 100 as soon as the macro hits a sheet name which is the same as it is trying to change it to it stops and errors out.. how can I fix this

  • @dimitrz2000
    @dimitrz2000 3 года назад +2

    Thanks very useful , quick question
    once all the sheets have been renamed , can I come back and delete the macro if a) I dont want to rename more sheets in future b) I want to retain a macro free workbook ?

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

    Hi everything work perfect , but I want to star putting name on the second sheet . What can I change in the coding ?

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

    Hi , would like to ask how to save can use this marco for everyday . ?

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

    Thanks for the lesson, however I am trying to use this format in a workbook in which the naming sheet is the second sheet in the workbook and will only rename sheets after the naming sheet. Can you help me?

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

      Hi
      Assuming that the first sheet is named "Nabil" and we want to start renaming from the second sheet having the list of names, then I will add a conditional statement that evaluates the sheet name first before renaming, as follows:
      Sub RenameSheets()
      Dim i As Integer
      i = 1
      For Each Sheet In Sheets
      If Sheet.Name "Nabil" Then
      If Cells(i, 1) "" Then
      Sheet.Name = Cells(i, 1).Value
      i = i + 1
      End If
      End If
      Next Sheet
      End Sub
      Good Luck

  • @1pieceluffy1
    @1pieceluffy1 4 года назад

    i want to start the renaming on the next sheet, not on the same sheet. What should I modify in the code? Thanks

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

    I am copying multiple sheets in one excel and want rename it.. but due some restrictions I am not supposed to have macro in that main excel sheet.. is there any way that I can have this macro in another workbook and it will rename the sheets in the main excel sheet automatically...

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

    What if I want to hyperlink at the same time? Thanks the video it's very helpful

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

      You can... watch my other videos about Extracting a List of Sheet names and hyperlinking them

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

    THANK YOU NABIL AMAZING VEDIOS I WANT TO CONNECT WITH YOU

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

      I'm glad you enjoyed my tutorials.
      You can connect with me by clicking on any of the website links in my tutorials where you'll find my contacts

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

    I've done exactly what was showed in the video which works perfectly however the other formulas I had in my main sheet now shows BLOCKED what does this mean and how do I get around it?

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

    How do you indent your vb code is there a short cut key!! you use. Thanks

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

      Just put your cursor at the beginning of the line and hit TAB as many times as you want

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

    What about if you are wanting to do a Date format? I'm failing with this. If I put in alpha characters only it works, but nothing with a date

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

    I have 12 cells I want to name 12 of the sheets (not all sheets just 12 in the middle of 24. and Cells are spread over 4*3 layout. Cells H5:K8) any thoughts?

  • @sushmitashettigar
    @sushmitashettigar Месяц назад

    What if present name and changing name of some sheets are same. I am facing this problem getting debug message that try other method present name is same

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

    how do i avoid name is already taken error? I want the name to be replaced even if the sheet name is already the required name.

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

    i get an error if the cells contain anything other than letter text. i.e a date or number

  • @jeraldthalaiva85
    @jeraldthalaiva85 6 месяцев назад

    Sir, incase u have to change name is automatically rename change or not??

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

    How to change one or moreTabs name or worksheets name in upper Case by vba? my worksheets has 100 nos

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

    Can I rename worksheet name as workbook?? For single sheet only??
    I have number of files in Excel to rename??

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

    How can we make it so that it skips sheets with the name already taken and not give an error

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

    sir suppose i have list 15 name of sheet so please make vba code to creat sheet as per list if possible

  • @nattroy891
    @nattroy891 6 месяцев назад

    I don't know if you're still checking comments. I put your code into my VBA exactly as you had it, but when I click 'Run' nothing happens.

  • @mohamed.montaser
    @mohamed.montaser 4 года назад +1

    if i want to skip the first sheet and start renaming from the second sheet, how to do it?

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

    Sir it is unable run in excel 2013 , what we have to do? Plz help

  • @christinacoleman1138
    @christinacoleman1138 8 месяцев назад

    It keeps throwing an error on "Sheet.Name = Cells(i, 1).Value"

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

    Is it working on Google sheet?

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

    did not work for me. I do not want to rename the tab that has the naming structure or the tab that has the summed up data but instead rename the remaining tabs. for example i have the first tab that will have the collected data represented and then the next subsequent tabs broken down by the day of the month for the entire month.

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

    This only worked for the first 5 names, I have 45 names. My first name starts at A4, my i value is 4, right?

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

      any code needs customization according to the work situation. I am just explaining a concept

  • @NTECH_e-learning
    @NTECH_e-learning 4 года назад +1

    how can i rename a group of 10 sheets (middle) in a workbook

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

      You need to customize the code

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

      @@Officeinstructor I came across the same situation. I have close to 200 sheets, and I only want to rename the mid 20 or so sheets. How do I customize the code to get this working?

  • @LindaWhite-jc9rg
    @LindaWhite-jc9rg Год назад

    Can you see me the code for this? Many thanks

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

    my first tab changed to 9176?? why?

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

    I have followed your video several times and have even copied your code for my workbook but it will not work. I have a workbook that is called "Mixed poker rooster" that keeps track of poker players for our bowling league. It consists of a master sheet that tallies weekly deposits. The sheets are named for the day of the week for 35 weeks. IE master, 02-sep-2019, 09-sep-2019, etc. for thirty - five weeks.
    the statement "Sheet.Name = Cells(i, 1).Value" never gets run.
    Here is my routine;
    Sub RenameSheets()
    Dim i As Integer
    i = 1
    For Each Sheet In Sheets
    If Cells(i, 1) "" Then
    Sheet.Name = Cells(i, 1).Value
    i = i + 1
    End If
    Next Sheet
    End Sub

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

    Why "dim i" and not "dim Sheet"? Seems sloppy. I would prefer to use Option Explicit and declare both variables

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

      If you are using Option explicit add this Dim Sheet As Object

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

    Dear many thanks

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

    Amazing!