Results 1 to 5 of 5

Application.Match not recognising numerical strings

Threaded View

  1. #1
    Registered User
    Join Date
    08-28-2013
    Location
    Brighton, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Application.Match not recognising numerical strings

    I have the following If function in an Excel VBA macro whic looks for the value of a defined variable within a column:

    Dim my_acc As String
    
    If IsError(Application.Match(my_acc, cb_range, 0)) Then
                cb_mvmt_ind = 0
                Else
                cb_mvmt_ind = 1
                End If
    However, the Application.Match function does not recognise cells that do contain the value of "my_acc" if the value is purely numerical. For example it will find "123456-78(GBP)" but will not find "12345678". I have tried declaring the variable "my_acc" as Integer, and have also tried just not declaring the variable at all but to no avail.

    Any ideas?

    Many thanks
    Last edited by Fotis1991; 10-29-2014 at 05:33 AM. Reason: PLS USE CODE TAGS AROUND YOUR CODES

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Converting text strings into numerical values for multiple entries
    By exceln00bie113 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-13-2013, 10:55 AM
  2. [SOLVED] MATCH recognising "A*" in progress tracking sheet?
    By paulstuartbullock in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-27-2013, 07:01 AM
  3. [SOLVED] loop to match if shorter strings appears in longer strings
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2012, 08:07 PM
  4. Application.Match... or Application.WorksheetFunction.Match ...
    By SDruley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2011, 11:34 AM
  5. Replies: 2
    Last Post: 07-20-2008, 09:53 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