+ Reply to Thread
Results 1 to 3 of 3

WorksheetFunction match - Userform

  1. #1
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    WorksheetFunction match - Userform

    Hello,

    I would like to ask your help regarding WorksheetFunction.Match.

    In the sample file there is a userform and I would like to fulfill the textboxes with the related informations which are linked with the selected "Account assignment number" <- this can be seen in ListBox1 (please type 9 in the search box).

    My problem is that if the "Account assignment number" is contain only numbers then the WorksheetFunction.Match property is not working (but if the "Account assignment number" has letter -like: P- somewhere in the number then there is no problem).

    I attached the sample file.

    Thank you for your reply!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: WorksheetFunction match - Userform

    This tests if the selected listbox item is numeric and converts the text to a value.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    Re: WorksheetFunction match - Userform

    Hi AlphaFrog,

    Thank you for the prompt reply, you were very helpful with me!

+ 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. Application.WorksheetFunction.Match in VBA
    By karen53 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-24-2014, 06:32 PM
  2. [SOLVED] VBA worksheetfunction.match doesn't match DATE. Userform
    By stevnb in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-05-2012, 09:08 AM
  3. [SOLVED] Userform Match - unable to get the match property of the worksheetfunction class - Help!
    By Tayque_J_Holmes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2012, 11:01 AM
  4. Worksheetfunction.Match Issue
    By DAA in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-01-2009, 09:51 AM
  5. Application.WorksheetFunction.Match
    By TK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-06-2005, 05:05 PM
  6. Excel2000 VBA: A problem with worksheetfunction MATCH
    By Arvi Laanemets in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-16-2005, 09:05 AM
  7. [SOLVED] Application.WorksheetFunction.Match problem
    By Carl Brehm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2005, 11:06 AM

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