+ Reply to Thread
Results 1 to 3 of 3

Problem in creating combobox by clicking button in UserForm

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    hk
    MS-Off Ver
    2007
    Posts
    2

    Problem in creating combobox by clicking button in UserForm

    Hi,

    I created a UserForm in Excel which originally has 1 combobox. I want the UserForm to add new combobox right below the last combobox in the lowest position. The macro works but it skip the second combobox.

    Please Login or Register  to view this content.
    And it what happens when I click the button "Add Site"

    ???? 2017-08-27 ??10.42.25.png

    I cannot figure out where is this error come from. Is here anyone can help.

    Thanks in Advance.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Problem in creating combobox by clicking button in UserForm

    You have two errors. Highlighted in Red. You do not need +1


    Please Login or Register  to view this content.

    I must say would it not be easier to create all the ten comboboxes and make nine of them invisible, rather then adding them using the macro?

    I would assume you have to create the code to drive them up front anyway.
    Last edited by mehmetcik; 08-27-2017 at 04:14 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    04-14-2015
    Location
    hk
    MS-Off Ver
    2007
    Posts
    2
    Quote Originally Posted by mehmetcik View Post
    You have two errors. Highlighted in Red. You do not need +1


    Please Login or Register  to view this content.

    I must say would it not be easier to create all the ten comboboxes and make nine of them invisible, rather then adding them using the macro?

    I would assume you have to create the code to drive them up front anyway.
    Thank you so much mehmetcik.

    I had found some post here teaching how to create invisible combobox.
    Since I want to use the number of combobox created to set the variable in another macro in Module. So I try to code the userform to be able to create new combobox.

+ 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. Userform will not reload after clicking button (error message)
    By KG23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2017, 01:39 PM
  2. Showing Run time error when clicking the button from Userform.
    By Prabakaran3003 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2016, 06:53 PM
  3. Problem clicking subitems in listview to open a userform
    By marcoexcel16 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-12-2016, 05:14 AM
  4. Call userform 1 from userform 2 allowing to open workbook 1 clicking button 1
    By FMontana in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2015, 02:29 AM
  5. [SOLVED] Error opening userform (clicking button)
    By adamstarr12 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-24-2014, 08:10 PM
  6. [SOLVED] Close UserForm after clicking OK Button
    By david1987 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2013, 08:15 AM
  7. Creating a userform that activates when double-clicking a cell
    By AGrace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2010, 08:05 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