Consulting

Results 1 to 3 of 3

Thread: Replace Combobox with Listbox ...

  1. #1
    VBAX Regular
    Joined
    Mar 2009
    Location
    Stowmarket
    Posts
    62
    Location

    Question Replace Combobox with Listbox ...

    I have a ComboBox in a UserForm which I want to replace with a Listbox.

    Is there an *easy* way of doing this, i.e. just changing what type of box it is (I doubt it !!!).

    I can obviously create a new ListBox and amend the Properties one by one to match that of the ComboBox, then delete the ComboBox, move the ListBox to where the ComboBox was in the UserForm & then go through the program replacing all the references ... but that seems a little long-winded ...

    Any suggestions ?!?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Just create a combobox, delete the listbox, then rename it to whatever the listbox was. Then try it.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Mar 2009
    Location
    Stowmarket
    Posts
    62
    Location
    Quote Originally Posted by xld
    Just create a combobox, delete the listbox, then rename it to whatever the listbox was. Then try it.

    I have taken the "long-winded" route & just created a new Listbox, replaced the Combobox & amended the program where necessary ... thanks for the help & sorry for the rubbish I typed last night !!!
    Last edited by vodkasoda; 04-08-2009 at 06:52 AM.

Posting Permissions

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