+ Reply to Thread
Results 1 to 3 of 3

Userform Find (VLOOKUP) function search string problem

  1. #1
    Registered User
    Join Date
    01-06-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    39

    Userform Find (VLOOKUP) function search string problem

    Hi Guys,

    I am hoping you can help me with this one. I am trying to build a search userform in excel that will allow the user to search using 1 of 3 possible search strings: Post Code, Check Number 1 and Check Number 2.

    Now I am able to create a find function to work using a search that works using one search string, be it either Post Code, ChcNum1 or ChcNum2, however when I try to create one that will cancel out the other two based on the user input something goes awry in the code.

    See the code below for help.

    Please Login or Register  to view this content.
    Please help, any input is greatly appreciated and you guys have been a great help in the past.

    Thanks in advance!
    Last edited by TalResha; 06-17-2011 at 04:15 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Userform Find (VLOOKUP) function search string problem

    Presumably you need to change the column, Columns(29). Include a Long Variable for the Column e.g. lCol and some means of choosing what to search by - a CombBox maybe & define lCol from this.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    01-06-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    39

    Re: Userform Find (VLOOKUP) function search string problem

    Managed to find a way around it using the following code:


    If ChcNumSrch <> "" Then
    TextBox1.Value = ""
    MPRSrch.Value = ""
    Thanks for the help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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