+ Reply to Thread
Results 1 to 3 of 3

Mixed Bag - VBA index/match, ComboBox Text derived from Named List based on cell formula,

  1. #1
    Registered User
    Join Date
    09-11-2018
    Location
    San Jose, California
    MS-Off Ver
    2016
    Posts
    3

    Mixed Bag - VBA index/match, ComboBox Text derived from Named List based on cell formula,

    Afternoon everyone,

    I'm really struggling to figure out what is going on now. I've tried to create an excel document that will act as a job tracker throughout various phases of construction. The initial worksheet layout is based on shapes used as tabs, which determine which columns are visible when clicked from a VBA Module. (Unhide All Columns to review)

    From there, I've inserted 3 ActivX ComboBoxes that are meant to be used as alternative search fields. The user will rarely have/know all three of the values so I want to make sure they can populate all of the available data by using one of these 3. I initially attempted to use 3 option buttons that would alternate linkedcell and rowsource via macro, but that started to get funky. For now, I'm stalled at the ComboBox1_Change event and haven't proceeded with the other two in VBA . When the combobox1_change event starts, the other two comboboxes are hidden and textboxes are visible instead, and will populate with the related data.

    When the ComboBoxes are selected and the user starts typing, the rowsource is formula driven based on what is typed, and eliminates all options not containing the data typed, dynamically reducing the dropdown list. Extra columns were added to generate this effect and those in-cell formulas can be found in their respective "If found, Frequency, & Searchable List" columns.

    The current data range begins with Column FV and extends through NE

    This whole setup feels like a frankenstein of all sorts of approaches and now when I type in ComboBox1, excel crashes. Yesterday morning I had only 5 Dim'd ranges in the ComboBox1_Change macro and I was able to get the dynamic dropdown.

    All dim'd ranges are tied to their respective named ranges found in the name manager. This may be uneccesary or overkill and maybe a table is needed instead?

    Right now I think I just need someone to tell me what the heck I'm doing wrong, and point me in the right direction. I'm a VBA novice and have scrapped together what I have from various google results, and tutorials that I could find. Some of the Macros were tailored to fit my needs and may just be too much for Excel to process?

    I may need some advice on which sub events I should be assigning certain macros to eliminate the current headache.

    Some additional observations:

    There are three command buttons on the worksheet. (Add entry, Update Entry, and Clear Fields.) Add entry brings up a userform that works. Clear Entry clears all combobox values which then clears the dependant textboxes. Update Command Button is not yet programmed.

    Not able to get date values to populate as dates in the linked textboxes. I don't see how to format the textbox values to reflect this format.


    If I start typing "R" for "RDHA" the dropdown list seems unaffected. However, if I start to type "N" for "NWHL", excel crashes when I type N every time. I haven't gone through the alphabet, but I wonder if there is some significance to that...

    *edit* - I've now cycled through the entire alphabet, as well as numerals and only two letters cause an immediate crash of Excel. "N" and "S"... this occurs as a first letter and as a secondary letter.


    These are the current Worksheet Macros I have at a glance


    Please Login or Register  to view this content.
    Last edited by KentK; 10-17-2018 at 12:59 PM. Reason: Add additional observation to type/crash

  2. #2
    Registered User
    Join Date
    09-11-2018
    Location
    San Jose, California
    MS-Off Ver
    2016
    Posts
    3

    Re: Mixed Bag - VBA index/match, ComboBox Text derived from Named List based on cell formu

    Apologies if this is post is considered a cross-post. I posted at MrExcel but I've had no responses so I'm trying here.

    *Unable to post links yet.

  3. #3
    Registered User
    Join Date
    09-11-2018
    Location
    San Jose, California
    MS-Off Ver
    2016
    Posts
    3

    Re: Mixed Bag - VBA index/match, ComboBox Text derived from Named List based on cell formu

    *bump* Lots of views but no suggestions? Have I posted in the wrong sub?

+ 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. Creating INDEX MATCH MATCH formula based off text in cells
    By bbkdude in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-26-2017, 10:37 AM
  2. Replies: 4
    Last Post: 04-14-2017, 07:47 PM
  3. unable to get match property error in userform derived index match
    By alexcrofut in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-05-2015, 09:21 PM
  4. VB UserForm ComboBox List Based On Dynamic Named Range in Worksheet
    By huntethic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2015, 02:45 PM
  5. Problem with VLookup and Index Match on mixed Text and Numeric codes
    By Vaslo in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 12-17-2013, 12:54 PM
  6. How to INDEX/MATCH values from SharePoint List based on excel cell value?
    By Rerock in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2012, 12:37 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