Excel ActiveX Combo Box to Select Worksheets with VBA

Поделиться
HTML-код
  • Опубликовано: 1 авг 2024
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    You can make data entry easier by letting users choose a value from a combo box. A combo box combines a text box with a list box to create a drop-down list.
    🎓 Get access to the full Excel VBA course here: www.xelplus.com/course/excel-...
    You'll learn how to create a handy navigation combo-box for your Excel workbooks. The ActiveX combobox is automatically filled with the sheet names of your open workbook. If you add sheets, these are automatically added to the drop-down box. Deleted sheets are automatically removed from the combo-box.
    What you learn in this video:
    - User-Friendly Macro: A step-by-step guide to crafting an Excel macro that significantly improves navigation in extensive workbooks.
    - Dynamic Combo Box Creation: We'll show you how to add a combo box that lists all worksheets, updating itself whenever you add, delete, or rename a sheet.
    - Interactive and Automated: Learn to make the combo box fully dynamic, eliminating the need for manual updates.
    - Simple Coding Explained: Follow along as we delve into basic coding in Excel, including using ActiveX controls and worksheet activate events.
    - Problem-Solving Tips: Encounter common issues like duplicated entries and empty combo boxes? We'll teach you how to solve these efficiently.
    - Enhanced User Experience: Make your workbook more intuitive with custom messages and navigation aids in the combo box.
    - Workbook Open Event: Ensure your macro runs smoothly even when reopening your workbook by setting a workbook open event.
    ★ Links to related videos: ★
    Check out my VBA playlist here: • Excel VBA & Macros Tut...
    Courses ► www.xelplus.com/courses/
    ➡️ Join this channel to get access to perks: / @leilagharani
    👕☕ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
    🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.com/course-quiz/
    🎥 RESOURCES I recommend: www.xelplus.com/resources/
    🚩Let’s connect on social:
    Instagram: / lgharani
    LinkedIn: / xelplus
    Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
    #excel

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

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

    🎓 Get access to the full Excel VBA course here: www.xelplus.com/course/excel-vba-excel-macros/

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

      hOW ABOUT MAKING IT searchable assuming you have 100's or even thousands of sheets

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

    Love how you bring up problems that arise, so that the viewers can get a deeper understanding. Awesome video!!

  • @danielemerli9781
    @danielemerli9781 5 лет назад +1

    I already knew this method, but your videos are so well done that I watch them even if (sometimes) they're nothing new for me. I think your explanations are very clear and useful also for Excel beginners.

    • @LeilaGharani
      @LeilaGharani  5 лет назад +1

      Thanks for the kind feedback Daniele!

  • @ATPRO92
    @ATPRO92 5 лет назад

    awesome! what actually i'm been finding, finally i got it. thank you leila it's very useful for me.

  • @ckokse
    @ckokse 5 лет назад

    As always very useful. Thank you for the great explanation!

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

    This is very useful; It' is what I was looking for. You're great Leila, thanks

  • @Suryaprakash-uy8ng
    @Suryaprakash-uy8ng 4 года назад

    I have the exact requirement and looking for solutions on various websites. Nothing helped except this one. Thank you so much

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

    Thanks for showing us! It's an amazing feature.

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

    You are the best Leila thanks so much for all your videos

  • @sterne6
    @sterne6 5 лет назад

    I am excited about this solution. Thank you so much for doing such a great videos and sharing knowledge.

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      You're very welcome Olga! Glad you like it.

  • @vida1719
    @vida1719 5 лет назад

    Great as always step by step explanation

  • @educacionportable
    @educacionportable 5 лет назад

    Thank you so much Leila excelent job God bless you!

  • @Mick-qq1pi
    @Mick-qq1pi 5 лет назад

    Love your work, excellent teaching and now I use this on all my forms and it works brilliantly. Really Love your work Leila and would like to now learn how to activate more selections from 1 sheet to another.

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      Glad it's helpful for your own forms Mick!

  • @johnborg6005
    @johnborg6005 5 лет назад

    Thanks leila. I enjoyed that !!!

  • @jamesjujare2599
    @jamesjujare2599 5 лет назад

    Wow.. Awesome.. Really much useful class.. Waiting more videos .. Leila 😊

  • @HamidurRahman
    @HamidurRahman 5 лет назад

    Thanks for this concept.

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

    I really love your video. You explained clearly.

  • @sasavienne
    @sasavienne 5 лет назад

    What is that? Simply stunning. Brilliant ideas. I fell in love with Excel after seeing such useful tutorials. I do not want to stop learning from you. Thanks

    • @LeilaGharani
      @LeilaGharani  5 лет назад +1

      Thank you Salim! Glad you're enjoying the tutorials :)

    • @sasavienne
      @sasavienne 5 лет назад

      @@LeilaGharani Thanks Leila. I am addicted to these tutorials. Greetings from Hamburg, Germany.

  • @sumitthakur2241
    @sumitthakur2241 5 лет назад

    After a long time VBA thanx a lot mam

  • @caseyjohnston3332
    @caseyjohnston3332 9 месяцев назад

    I didn't even realize that I wanted this, but now I must have it! Great presentation! The workbook seems to be missing though.

  • @jokkiossaka3306
    @jokkiossaka3306 5 лет назад

    Thank you very much Leila for your time and cool video!

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      You're very welcome. Glad you like the video.

  • @markanthonyramos144
    @markanthonyramos144 5 лет назад +1

    Your post ws very helpful. Thank you so much leila.

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      I'm glad to hear that Mark. You're very welcome :)

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

    Very useful and easy to create. Thanks.

  • @Meolimo
    @Meolimo 5 лет назад

    always excelent thks Leila

  • @errolwirasinghe
    @errolwirasinghe 5 лет назад

    Sorry.. I was able to download it - thanks! You are an expert; but more.. an excellent teacher!!

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      Great. Thanks for the kind words Errol!

  • @sunnyc25
    @sunnyc25 5 лет назад

    THanks your a life saver

  • @dembasy6717
    @dembasy6717 5 лет назад

    Very usefull; Thanks a lot.

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

    Very nice. Thank you, Leila. The only issue I had was if I added the code to put "Select Sheet" in it crashed every time. It would go to the sheet but then give me an out-of-range error. I checked my code 5-6 times and, near as I could tell, it was right. I'm sure it's something I'm doing wrong on my end though.
    Your tutorials are great! Not 2 hours long so easy to stop and start and get it going.

  • @dagfinnvines9295
    @dagfinnvines9295 5 лет назад

    Very useful, think I'm going to use it in my work.

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      Glad you like it. Hope it worked out.

  • @DelveInfotainmentNetwork
    @DelveInfotainmentNetwork 5 лет назад

    Your videos r just wow !!

  • @juanbetancourt5106
    @juanbetancourt5106 5 лет назад

    Thank you for share it Leila

  • @HighStakesDanny
    @HighStakesDanny 5 лет назад

    Super pretty. Super smart.

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

    Hello Leila. I love what you do, it is really useful and helpful. You were born to be a teacher.
    This video really helped me with my work especially when I have a Workbook full of sheets.
    Is there a way that we can make the combobox searchable digiting some letters?
    Thank you

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

    Eccellente tutorial, complimenti.

  • @accountingjobwantedanywher8220
    @accountingjobwantedanywher8220 5 лет назад

    Most Helpful to us

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

    Thank you much.

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

    Excellent

  • @jimbarton7072
    @jimbarton7072 5 лет назад +14

    Extremely helpful as are all your videos. I made one small addition. Because I often use a hidden "settings" sheet, I added this to cbSheet.AddItem:
    If Sh.Visible Then
    Me.cbSheet.AddItem Sh.Name
    End If

    • @LeilaGharani
      @LeilaGharani  5 лет назад +1

      That's a good one! Thanks for sharing.

    • @NikBFeld
      @NikBFeld 5 лет назад +1

      Hi, where would you enter that code?

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

      help... what about certain sheets?

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

      "spesific"

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

      this does not explain where to place it. please elaborate.

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

    I form indonesia Good your jobs tanks u

  • @DarcyWhyte
    @DarcyWhyte 5 лет назад

    Nice!
    Have you thought of adding a function into a module that populates the dropdown?
    Then it can be reused from the workbook load and the sheet activate.
    You just pass "me" from the activate as a parameter to get the context. From the open pass a reference to sheet(1).

  • @sebghatulbarykhabaey6680
    @sebghatulbarykhabaey6680 5 лет назад

    Brilliant.

  • @BigIz104
    @BigIz104 5 лет назад

    Awesome! Thank you! I recorded macros for hiding my sheets that will only appear when selected from the combobox. Is there a way to have the combo box unhide the sheets then go to them?

  • @mohammedMbwana
    @mohammedMbwana 5 лет назад +1

    78 viewer and 1st comment. Great video Leila

    • @LeilaGharani
      @LeilaGharani  5 лет назад +1

      Thanks for the quick watch & comment!

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

    Thanks 👍

  • @mehdihammadi6145
    @mehdihammadi6145 5 лет назад +3

    Thank you for sharing Leila. . Maybe you do that intentionnally but I would combine the procedures (write the code) in a way that avoid the switch to another sheet and coming back to run the macro if the workbook open on the ActivateX Sheet.

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      You're welcome Mehdi - do you mean having the procedures on the same ActiveX sheet instead of the workbook sheet?

    • @mehdihammadi6145
      @mehdihammadi6145 5 лет назад +1

      I would write the code that manage the updating of the ActiveX control in a module than just call it on the two event Worksheet_Activate and Workbook_Open

    • @TheHellis
      @TheHellis 5 лет назад

      @@mehdihammadi6145 exactly my thought too.
      Hardcoding a sheet switch to "data" and then back means "data" must exist.
      What if we rename it to "data [year]" then the code fails.
      Duplicating the code works too, but that is WET coding, and it means you need to change the code at two places if you want to change something.

    • @mehdihammadi6145
      @mehdihammadi6145 5 лет назад

      @@TheHellis best practice when code invoke a sheet is to use its "VBA Name" not the "Sheet tab name"

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

    thank you for this usefull function , is it possible to open the list box ( Active X ) sheet every time we open the workbook.

  • @HiteshPatel-hq4lt
    @HiteshPatel-hq4lt 3 года назад

    Hi Leila.
    Thank you for all your VBA Videos. I have been using many of your VBA Codes quite a while now. Recently I have used your code of this video and achieved what I was willing to. However, as an additional feature, I wrote code to first unhide the sheet based on ActiveX selection but failed to re-hide the same sheet again when ActiveX sheet is reselected after relevant data entry. Below is my attempted code:
    Private Sub cbSheet_Change()
    If CBSheet.Value "Select a sheet" Then
    Worksheets(CBSheet.Value).Visible = True
    Worksheets(CBSheet.Value).Select
    If Worksheets("ActiveX").Select = True Then
    Worksheets(CBSheet.Value).Visible = False
    End If
    End If
    CBSheet.Value = "Select a sheet"
    End Sub

  • @krn14242
    @krn14242 5 лет назад

    Thanks Leila

  • @taco7rk34
    @taco7rk34 5 лет назад

    Always great videos Leila. I like when I get notifications that you have a new video. I run to my computer.
    From a practical standpoint, in what business scenario would this be a better option then just clicking the tab itself? Do you have any books that you recommend to learn VBA for Excel?

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      Thank you. I'm really glad to hear you enjoy the videos :) I'd say this is good for files that have a lot of tabs where you need to scroll to find the right tab, or for customized applications, where you hide the tabs from view and get the user to jump to different pages from the drop down only.... You can find the books I recommend here: www.xelplus.com/resources/#excel I love the one from Walkenbach.

  • @positive7393
    @positive7393 5 лет назад

    Great tutorial.
    How to list and select worksheets that contain specific letters or word with Combo Box? IS it possible?
    Thank you

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

    Hi Leila - Any guidance you can provide on how I can wrap text in a combobox and make OptionButton (grouped) mandatory?

  • @prafulchandekar4986
    @prafulchandekar4986 5 лет назад

    Thanks mam.................

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

    Hi, Thanks very much for your RUclips. Instead of using change event, I have tried the "click" event also, and also work. Could you tell me their differences ? Under what circumstances they will get different results? Thanks.

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

    Hi Leila, The video is great! I did the exact same one yesterday and the combo box was populated successfully. Today I played with the code a little bit in VBA editor. But later in the day, I tried to open a new excel file and used the exactly the same code by following every step here. However, this time, my combo box just wouldn't populate anything. I tried 3 times this evening but still failed. Any clue?

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

    THANK YOUUUU! I don't need the combo box, but I've been trying to figure out how to make sure my file opens to my dashboard every time it's opened and I think that last segment answers that. Now I'm kicking myself for leaving my laptop in my office so I have to wait until tomorrow to try it.

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

    leila can we select multiple sheets from this combo box by pressing ctrl and activate multile sheets, if not what changes we have to make

  • @kaaa3485
    @kaaa3485 5 лет назад

    Hi Leila, If you we are analyzing 2 factors like time and temperature, we use a graph to see the effect of time on the temperature. But how can we analyse the data based on 3 or more factors to see their effect. Thanks in advance.

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

    Hi Leila. Thank you for your video. Very well made. I have a question regarding this topic. If we want to sort the worksheets inside the combo box. How can we do it? Your reply is much appreciated.

  • @sjurnielsen8230
    @sjurnielsen8230 5 лет назад

    Another great tutorial! Thank you for your effort. The only thing I miss here is a fully dynamic solution on the Workbook/open macro. If you change sheet name on "ActiveX" or "Data" you run into minor trouble :-) Would be nice to be able to copy and paste the Macros into other workbooks without rewrite it.

    • @LeilaGharani
      @LeilaGharani  5 лет назад +3

      Thank you. Yes - agree. To make it more dynamic we could jump to the last sheet in the workbook by counting the sheets - something like Sheets(Sheets.Count).Select and then jumping back to the first sheet...

    • @sjurnielsen8230
      @sjurnielsen8230 5 лет назад

      @@LeilaGharani Thank you. Amazing to follow your tutorials! ☺

  • @Habib-fz3zq
    @Habib-fz3zq 4 года назад

    Amazing videos. I am using your version here. I am also trying to create a version where all worsheets are hidden (but ActiveX) and where only the selected combo-box option is unhidden with a button in each worksheet to take me back to ActiveX worksheet. I hope this makes sense :) If you have a tutoral video to help with this... Thank you again.

  • @hoffy11394
    @hoffy11394 5 лет назад +1

    Does anyone know how to only show a subset of the sheets? I have hidden sheets that I don’t want visible to the end user.

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

    Hi Leila i need your help. I am applying what you taught on multiple worksheets. I have a hundred of worksheet. Is there a way to have a search function with that combobox?

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

    Hi. Very helpfull tutotial... im wondering is it possible that the drop.down details in the combo box will be arrange alphabetically? Thanks

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

    Hi,
    What to do when user form seems to be doubled? Is it some kind of error in my excel?
    Once form has been created every click on it creates second one that actually is operative.

  • @johnjohnjman
    @johnjohnjman 5 лет назад

    What if I want the Combo Box to select a few specific sheets? (i.e. not all the sheets in the workbook but just the ones I want)

  • @rajaelrajon
    @rajaelrajon 5 лет назад

    Thanks Leila, I'm learning very much with your Videos. Since I found your channel I visit it every day. I have an observation, since the the ComboBox is dynamic, what if the user delete the worksheet "Data" that is used at the open event. It´s better to use something like this ...
    Private Sub Workbook_Open()
    Dim SH As Worksheet

    temp = ""
    For Each SH In ThisWorkbook.Worksheets
    If SH.Name "ActiveX" Then temp = SH.Name
    If temp "" Then GoTo salir
    Next SH

    salir:

    If ActiveSheet.Name = "ActiveX" Then
    Worksheets(temp).Activate
    Worksheets("ActiveX").Activate
    End If
    End Sub

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      Agree - that's a good workaround. Many thanks for your contribution.

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

    Hi Leila, i’m always suprized to see how easy and understandable you make excel. Leila how can i make this combobox work if I “hide” worksheets. With the current vba formule it give a error (de bug”?
    Thanks frank

  • @vasudevan7637
    @vasudevan7637 5 лет назад

    Hi Leila
    I need one clarification in excel conditional formatting (How to turn conditional formatting cell color into fill color in another cell)
    Please let me know once you found the solution
    Thanks

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

    hello madam, is there any chance that we can make a dropdown list in combobox of available userforms in same excel and open them by selecting combobox value. looking for your answer.

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

    Hey! thank you for the wonderful tutorials. Say I used the vlookup formula to create a class card all are working fines, thanks to the tutorial of yours. Now, my problem is I want to print it all once as one print job instead of selecting a name from drop-down list then pressing print because it can be annoying and time-consuming.
    Is there a way to do it? perhaps using VBA?
    thanks a lot.

  • @maisarahmustafa3927
    @maisarahmustafa3927 5 лет назад

    Hi Leila :) What if I only want certain sheet in the combo box? What should I do?

  • @younisrafiq4161
    @younisrafiq4161 5 лет назад

    Hi Leila.. what if we have to select multiple sheets without referring name or index. number As an example I want to print multiple sheets, how can I select them to get printed at once. Thank you

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

    Thank. How to transfer data to specific sheet same method in userform combobox ?
    i have fixed the sheet name like data (wrote in the algorithm). now I need change instead of data to combobox value. I hope you. Help me..🤔🤔

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

    thanks.

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

    Thank you so much Leila for this Video, Please help me with query "how to exclude excel tabs name from combo Box"

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

    How do use radio buttons for activeX control and record the output into another tab - options are Yes And No - what VBA code would you write for this please?

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

    The Format Control is there with 4 options. (Size, Protection, Propertied and Alt Text) there isn't a 5th option " Control" .
    I have checked two different computer with Excel 2019 and 365. Non shows the Control tab???? Your thoughts please.

  • @Amerona
    @Amerona 5 лет назад

    What about changing name of the sheet ActiveX :-( Why not run same Code as in Worksheet_Activate() also At start up?

  • @michaeldiamond2726
    @michaeldiamond2726 5 лет назад +2

    Hi Leila,
    Nice!
    I think it would be cool if you added some code that sorted the sheets in the combo box alphabetically.
    Could you create some sort of event that would automatically bring up the combo box (maybe add userform with a double click event - like I have in my custom formatting file)? I know this is only an example to show what VBA could do but I think it would be a cool tool to be able to add to my VBA toolbox at work (when I start working again). Maybe you could add this new code to the comment section (so you won't have to create another video).
    Really cool

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      Hi Michael, sorting is a good idea - you can use an array for that like in this link: exceloffthegrid.com/sorting-an-array-alphabetically-with-vba/
      We could create this on a userform too and maybe have a shortcut key that brings it up. This way the users aren't going to unintentionally bring up the userform when they double-click or right-mouse click etc... this could also be added to the QAT. It's a good idea actually....

    • @michaeldiamond2726
      @michaeldiamond2726 5 лет назад

      HI Leila,
      Thank you for the link to that code. I'lll add this to my userform that I have in my custom formatting sheet. I imagine you could call the function into the existing code, correct? Great idea about the QAT, I am afraid to use a mouse event because you might not want to call the userform but still perform the same action with the mouse.

    • @michaeldiamond2726
      @michaeldiamond2726 5 лет назад

      I was able to get some additional code from the Mr Excel Message Board. Just search a search on Sorting sheets in a list box

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

    How can I make my hidden sheets appear in the ComboBox? Since right now it gives me an error. Thank you!

  • @errolwirasinghe
    @errolwirasinghe 5 лет назад

    Leila, I am not into excel in a big way; but follow your lessons. where can we get the code for the active box?

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

    Leila, I want to keep the VeryHiden Sheets from appearing in the drop down list, how would I go about doing that? your hep is much obliged! Fadhel

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

    hi, i have learned a lot from this lesson. how can i make a specific list and not a dynamic list? for exp-only 2 sheets from 5 sheets , that in the workbook?

  • @wayneedmondson1065
    @wayneedmondson1065 5 лет назад

    Hi Leila.. another excellent and useful video.. very professionally presented and easy to follow. I watched and copied your steps through the video and then to reinforce the lesson, I built the same from scratch without the video. Both worked without a hitch. This could be easily adapted to printing vs. selecting, sending the selected sheet name from the Combo Box to a Worksheets(cbSheet.Value).PrintPreview or Worksheets(cbSheet.Value).PrintOut command instead of Worksheets(cbSheet.Value).Select command. That would be a time saver. On that thought.. what about a video lesson on using the List Box ActiveX control to enhance a Print Preview or Print Out procedure for selecting multiple sheets for processing simultaneously? I can envision multi-selecting from a List Box to do Print Previews of groups of sheets or sending selected sheets directly to the printer simultaneously as a single print job. That would be helpful.. something to consider if you are looking for a new topic for your next video. Thanks again and Thumbs up!

    • @LeilaGharani
      @LeilaGharani  5 лет назад

      Thank you Wayne for your comment! I love your idea on ListBox that enables print preview or directly printing selecting sheets. I've added that to my list. Thank you!

  • @omar-sq6zq
    @omar-sq6zq 4 года назад

    ماشاء الله عليك

  • @domuhutagaol2958
    @domuhutagaol2958 5 лет назад

    Dear Ms Leila,
    How are you and hopefully you are well.
    I am working with VBA macro where I am creating user form of combobox to list some of sheets on my workbook into combobox ( sorry not all). let say I have 6 sheets which are Sheet1, sheet2, sheet3, sheet4, sheet5, sheet6. I wanted sheet2, sheet5 and sheet6 go into combobox.
    Could you please advise me the vba code on this. appreciate your comments.
    FYI I am using the below vba code but all of the sheet went into the combobox but I want only few sheets. below was the vba code :
    Private Sub userform_initialize()
    Dim n As Integer
    Do
    n = n + 1
    CmbReporting.AddItem sheets(n).Name
    Loop Until n = Worksheets.Count
    end sub
    I change the name of combobox become cmbReporting.

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

    Hi Leila, I love your work and have been silently following for years now. I don't know if you actually answer questions here or not, but here goes. I've been using your sheets navigation list form this video and have come across the need for it to be alphabetized. Can you point me in the right direction? Thanks for any help.

  • @nhac_hay1995
    @nhac_hay1995 5 лет назад

    I want to ask is to use a combobox userform to select worksheet.
    Please make a video tutorial.
    Thank you !

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

    really awesome video. but if you right click on the sheet navigation arrows on the bottom left of the window, you get a pop up list of all the sheets in the workbook that essentially does the same thing.

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

    Hi Leila ; thanks for sharing your knowledge . Your videos are always awesome .....i am a Mac user ; beginner in VBA and fan of it . However the ActiveX controls are not activated?? on my Mac!!!! Grateful if you could assist me . Thanks beforehand for your assistance .

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

    I have combo box which uses list fill range & on click of value in combobox userforms open, but after closing when I click the value selected it does'nt open the userform again.

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

    the question might be a bit out of context.
    but i am searching answer since a month surfing internet.
    Is there any VBA code which help us to automatically drop down list when we start typing in a cell that contain data validation. using Mac version so no ActiveX.
    thanks.

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

    How to set lable or any command button back style to transparent. After click on design mode or running userform it came to its original back style

  • @ashvinkallee143
    @ashvinkallee143 5 лет назад

    Thanks a lot. I was looking for same. In fact, i was using hyperlinks to navigate across sheets but it i was not satisfied.

    • @ashvinkallee143
      @ashvinkallee143 5 лет назад

      However, i would also wish if the combo box does not include the name of the active sheet.

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

    Merci

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

    Possible to use an activeX DLL in excel 2016 vba?

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

    This is great! What if the sheet are hidden?

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

    Hi leila
    I have a question, what if we hide the selected sheets
    Is it still appears in combo box
    Thanks anyway
    God bless you
    👍👍👍

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

    Hi, how to do make this possible if you want to hide sheets?

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

    Is it possible to make this drop-down also searchable?