+ Reply to Thread
Results 1 to 4 of 4

Not select any ComboBox item?

  1. #1
    Forum Contributor
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    680

    Not select any ComboBox item?

    Please Login or Register  to view this content.
    How to NOT select any ComboBox item when opening a workbook? Both items are equally important, and I prefer to let user to choose. Not prefer to have default selected item.

    Is it possible not to have any item selected, while there is no blank item available?

    Thanks.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Not select any ComboBox item?

    Try this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    680

    Re: Not select any ComboBox item?

    Quote Originally Posted by AlphaFrog View Post
    Try this...

    Please Login or Register  to view this content.
    Thanks. But I just realize that there is a new issue if leaving it blank. I don't know why the code in Sheets("Test") ComboxDatabase_Change will also run after finishing the Workbook code. There will be problem to run ComboxDatabase_Change if the ComboBox is blank.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Not select any ComboBox item?

    To suppress running your _Change event code on open, try this.

    Declare this public variable at the top of any standard code module e.g; Module1
    Please Login or Register  to view this content.
    This add this line...
    Please Login or Register  to view this content.

    And add this to your ComboxDatabase_Change procedure

    Please Login or Register  to view this content.

+ 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. Select Listbox Item by ComboBox Item
    By atadaliran in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2017, 04:04 PM
  2. [SOLVED] Auto detect date and select item in combobox
    By Tpleme in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2017, 03:26 PM
  3. [SOLVED] How to select an item in a Combobox on another userform by Index
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-08-2016, 02:16 PM
  4. How to select a item in a combobox?
    By marlonsaveri in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2011, 01:03 PM
  5. Select combobox item using string matching
    By TheFormerAstronomer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2011, 04:27 AM
  6. Select Combobox Item With List Item Select
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-22-2011, 02:40 PM
  7. Select item thru combobox to edit userform data
    By tvrm1963 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-08-2010, 04:04 PM

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