+ Reply to Thread
Results 1 to 3 of 3

Adding Wildcard to VBA Search Criteria to Produce a Message Box

  1. #1
    Registered User
    Join Date
    07-21-2014
    Location
    Toronto, ON
    MS-Off Ver
    MS Office 2010
    Posts
    55

    Adding Wildcard to VBA Search Criteria to Produce a Message Box

    Hi....I have a vba code that is using the values in 3 cells (drop down combo boxes) to bring the user to specific rows and columns on a specific sheet in my workbook (partial of the code is below). This is working beautifully. My problem is now if the value of "list3" equals "Other", regardless of the values in "list1" or "list2", I need a message box to pop up instead of bringing the user to another sheet. I can't seem to get this to work. There are over 150 different combinations of choices available in my list already so I'd prefer to use wildcards (*) for the "list1" and "list2" values and only have this line of code in once if possible. But I can add code in for each combination if that is what I need to do. I can't seem to get the write syntax to make it work. Any idea of how to do this and where to put the code? Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Adding Wildcard to VBA Search Criteria to Produce a Message Box

    Im not sure if Im misunderstanding however, if you're saying you always want something different to happen if list3 = "Other" then dont bother checking lists 1 and 2 ie
    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    07-21-2014
    Location
    Toronto, ON
    MS-Off Ver
    MS Office 2010
    Posts
    55

    Re: Adding Wildcard to VBA Search Criteria to Produce a Message Box

    Thank you! That worked. I was hung up on the idea of looking at all 3 lists.

    Have a good day.
    Kat

+ 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: 2
    Last Post: 06-15-2015, 07:03 AM
  2. [SOLVED] Produce error message when pasted values break validation rules
    By oliveirano25 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-01-2015, 10:18 AM
  3. [SOLVED] Search using wildcard
    By tapsmiled in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 07-30-2014, 07:18 PM
  4. [SOLVED] If 2 cells do not match produce a message
    By moley165 in forum Excel General
    Replies: 3
    Last Post: 05-08-2012, 07:17 AM
  5. If, And, wildcard search
    By zachvu in forum Excel General
    Replies: 4
    Last Post: 07-14-2011, 06:41 PM
  6. Replies: 3
    Last Post: 08-12-2005, 03:05 PM
  7. Replies: 3
    Last Post: 06-27-2005, 05:05 PM

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