+ Reply to Thread
Results 1 to 8 of 8

How to fill a combobox only once

  1. #1
    Registered User
    Join Date
    01-17-2014
    Location
    In a house, I think.
    MS-Off Ver
    Excel 2010 I think
    Posts
    12

    Lightbulb How to fill a combobox only once

    I have a combobox on the spreadsheet itself, not a userform, and I've looked through the ways of filling it and they can all be called multiple times, so after the user using the form for a short period of time the combobox has filled itself with the same options again and again
    Is there a way to make it fill it when the spreadsheet initializes or only on the first click.
    Thanks

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: How to fill a combobox only once

    The answer is yes, however without any knowledge of what code you are using it is impossible to advise.

    you could just clear the combobox before adding new data

    combobox1.clear
    then run the code to add items
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Registered User
    Join Date
    01-17-2014
    Location
    In a house, I think.
    MS-Off Ver
    Excel 2010 I think
    Posts
    12

    Re: How to fill a combobox only once

    Thanks for the help;

    So the combobox has a list of the names of hidden sheets, and when the user presses "Go" I want it to take them to whatever sheet they've selected in the combobox

    Is this possible

    Thanks

  4. #4
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: How to fill a combobox only once

    try something like this
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-17-2014
    Location
    In a house, I think.
    MS-Off Ver
    Excel 2010 I think
    Posts
    12

    Re: How to fill a combobox only once

    Is there a way to make it navigate to hidden worksheets?
    Or maybe unhide it for a short while while it navigates then to hide it again?
    Any alternative solicitations will be appreciated

    Thanks

  6. #6
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: How to fill a combobox only once

    you can hide or unhide sheets using the following
    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: How to fill a combobox only once

    try this
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-17-2014
    Location
    In a house, I think.
    MS-Off Ver
    Excel 2010 I think
    Posts
    12

    Re: How to fill a combobox only once

    I modified it to this
    Please Login or Register  to view this content.
    and it opens the sheet, and then forces me out of it when it closes it...
    is there a way to make it hide it again when the user goes to a different sheet?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Why Form Combobox VBA do not fill the combobox? Please help!
    By alex_shin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2013, 03:03 AM
  2. Fill Combobox
    By giant in forum Excel General
    Replies: 2
    Last Post: 04-26-2013, 04:06 PM
  3. [SOLVED] Can't get combobox to properly fill data based on another combobox.
    By Orestees in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2012, 05:22 PM
  4. combobox fill
    By st0kvis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2011, 05:49 AM
  5. Fill combobox from DLL
    By JJ in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2006, 05:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1