+ Reply to Thread
Results 1 to 7 of 7

Combo DropDown List is moving after text selection

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    224

    Combo DropDown List is moving after text selection

    Hi,

    I am new to VBA. I am trying to have suggested name in combobox. After the name selection, it kept moving in all the sheets. Below are the VBA codes.
    I added the ComboBox1_Close() to avoide this but still not working. Please refer to attachment.

    Private Sub ComboBox1_Change()
    ComboBox1.ListFillRange = "DropDwnMemberList"
    Me.ComboBox1.DropDown
    End Sub

    Private Sub ComboBox1_Close()
    Me.ComboBox1.DropDown = ""
    End Sub

    Can anyone assist. Thank you.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    224

    Re: Combo DropDown List is moving after text selection

    Hi,

    Each time I reopen the file, the vba codes I set as above goes missing and rekey in again and again. I retrieve the templates of the sample vba codes which is saved in xls format, the codes still remain but I don't understand why it goes missing.

    Can anyone assist me? Thank you.

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Combo DropDown List is moving after text selection

    Don't use ActiveX controls on worksheets, rather use Forms Controls - they're in the same place, buch much more stable.

    Also, why have you uploaded a picture in a word file? You could have attached the photo, or even better uploaded your workbook

  4. #4
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    224

    Re: Combo DropDown List is moving after text selection

    If I use the Form Controls, I am not sure how the user is able to key in suggested name instead of scrolling down to find the name. It's time consuming. There are 200++ names in the list. How does VBA applies using the Form Controls, if I would like to use the suggested name?

    And each time I reopen the file, the vba code is missing. I have been testing this for almost 2 days. I have uploaded the test data to have a clear picture.

    Please assist.
    Attached Files Attached Files

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Combo DropDown List is moving after text selection

    It's missing because you are saving the file as xlsx...

  6. #6
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    224

    Re: Combo DropDown List is moving after text selection

    I have tested by saving as xlsm format, the vba code exists. But the dropdown list is still moving in all the worksheet whenever I move the cursor after I reopen the file. Should I have add vba codes to clear the Combobox after I open the file?

    Please advise.

  7. #7
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    224

    Re: Combo DropDown List is moving after text selection

    Hi

    I have solved it using a list box. This way it will be easier for the users to just click on the name instead of guessing.
    Thank you for your contribution.

+ 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. Make same selection for multiple drop down list and clear all for all dropdown list
    By salomip13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2014, 01:34 PM
  2. Cull dropdown list options based on selection in another dropdown
    By Kiffar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2012, 01:53 AM
  3. Replies: 0
    Last Post: 08-22-2012, 03:52 PM
  4. Dynamic dropdown list selection based on combo box
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-10-2012, 10:55 AM
  5. List Box selection based on combo box selection
    By MFA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-09-2008, 10:19 AM
  6. combo box dropdown list
    By pczmut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-29-2006, 10:15 AM
  7. Combo Box List Dropdown
    By HornJM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2006, 05:15 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