+ Reply to Thread
Results 1 to 4 of 4

How can I replace Comboboxes?

  1. #1
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    How can I replace Comboboxes?

    Hi All,

    Just a brief question. Say I wanted to change some comboboxes to textboxes within my user form, is there a method whereby
    I could search say, combobox23 and replace with say, TextBox9. I don't particularly want to systematically replace the boxes
    individually and give myself a headache.

    Thanks

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: How can I replace Comboboxes?

    That seems unlikely to work since you are presumably using a combobox at the moment in order to put a list in it. If you do that in code, changing the combobox to a textbox is going to cause an error.

    Why do you want to change the control type? You could simply make the combobox look like a textbox- although you would likely be populating its List for no good reason.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: How can I replace Comboboxes?

    I basically chose poorly. Certain data should have been put into a textbox as its non editable to a third party user. As it stands, I put them (3 in total) into a ComboBox, which probably isn't best practice.
    It's not that much of an issue really, I just like the idea of the user form being tight regarding input and presentation. I could go in manually but I don't want to spoil anything until my experience grows Lol

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: How can I replace Comboboxes?

    Textboxes are editable unless you lock them and the same goes for comboboxes. You can also hide the dropdowns to make them resemble textboxes.

+ 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. Replies: 3
    Last Post: 02-18-2015, 02:02 PM
  2. Help! Entire Row Hidden - w/Two ComboBoxes - Doesn't Hide the ComboBoxes
    By ocnmel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-06-2015, 09:27 AM
  3. filtering comboboxes depend on value of other comboboxes
    By hassan khansa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-18-2014, 09:18 AM
  4. Comboboxes example
    By cv24 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-02-2012, 08:49 PM
  5. Loading Comboboxes and textboxes for Find and replace
    By insanity66 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-04-2009, 07:17 PM
  6. Comboboxes
    By Sniper in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2009, 08:40 AM
  7. OLE comboboxes
    By Mikkan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2005, 08:05 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