+ Reply to Thread
Results 1 to 6 of 6

How do I identify ComboBoxes based on String in the Name & then Update the list?

  1. #1
    Registered User
    Join Date
    06-23-2019
    Location
    Toronto
    MS-Off Ver
    Windows 10
    Posts
    3

    How do I identify ComboBoxes based on String in the Name & then Update the list?

    Hi Forum,

    I really need help trying to identify how I can identify the comboboxes that contain a particular string in order to update their list.

    Here is the code that I have used:

    Dim CBs as Object
    Dim WS as worksheet
    set ws = activesheet
    for each CBs in ws.oleobjects
    if CBs.Name like "*Top*" then
    ' WHATS NOT WORKING IS THIS CODE
    CBS.additem (item1)
    End if
    Next CBs

    If anyone can help that would be amazing.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How do I identify ComboBoxes based on String in the Name & then Update the list?

    Welcome to the board.

    Please take a few minutes to read the Forum Rules, and then edit your post to wrap your code with CODE tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-23-2019
    Location
    Toronto
    MS-Off Ver
    Windows 10
    Posts
    3

    Re: How do I identify ComboBoxes based on String in the Name & then Update the list?

    Hi Forum Guru,

    I'm new to the forum and not that familiar to the process. Thank you for your understanding and patience. I'm re-writing the post here with the tags. I hope that my tags were the issue.

    Hi Forum,

    I really need help trying to identify how I can identify the comboboxes that contain a particular string in their name and when found, I want to update the list of the identified combobox.

    Here is the code that I have used:

    Please Login or Register  to view this content.
    If anyone can help that would be amazing.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How do I identify ComboBoxes based on String in the Name & then Update the list?

    Thank you.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-23-2019
    Location
    Toronto
    MS-Off Ver
    Windows 10
    Posts
    3

    Re: How do I identify ComboBoxes based on String in the Name & then Update the list?

    OMG!!! Thank you ever so much Forum Guru. I have been suffering trying to figure this out.
    SOLVED!!!

    I'll start my next thread issue.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How do I identify ComboBoxes based on String in the Name & then Update the list?

    You're welcome.

+ 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. Find / Search Function to to identify if a text string is in a list
    By Coopereto in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2019, 02:06 PM
  2. userform comboboxes to automatically update as new entries are put into column.
    By sdhutty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2016, 09:18 AM
  3. Replies: 2
    Last Post: 03-10-2015, 10:09 AM
  4. Replies: 3
    Last Post: 02-18-2015, 02:02 PM
  5. Update Combo/List Box based on Text box search string
    By megha_gharote in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2013, 06:16 AM
  6. Replies: 0
    Last Post: 12-03-2012, 04:21 PM
  7. How to identify near-duplicates based on first characters/numbers in a string?
    By archaeologista in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2012, 11:21 AM

Tags for this Thread

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