Results 1 to 2 of 2

Unable to get Match property of the WorksheetFunction class

Threaded View

pavu Unable to get Match property... 10-29-2012, 09:41 AM
JBeaucaire Re: Unable to get Match... 10-29-2012, 10:00 AM
  1. #1
    Registered User
    Join Date
    06-30-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    12

    Unable to get Match property of the WorksheetFunction class

    hi ..

    I have written a macro to find out the particular colomn name.

    In my macro im using

    Application.WorksheetFunction.Match("design step", ActiveWorkbook.Sheets(j).Range("1:1"),0)
    to compare whether 'design step' is there in the first row.

    When i executed this code, in some sheets its working fine but in some sheets its throwing error like 'Unable to get Match property of the WorksheetFunction class '. I tried changing the code to

    Application.Match("design step", ActiveWorkbook.Sheets(j).Range("1:1"),0)
    by removing 'WorksheetFunction'. When i execute the code, the previous error was gone but 'Type Mismatch' error is coming.

    And also want to add code for error hanndling like if the string is not found go to the next tab in the same workbook.
    Can anyone help me in this . Thanks in advance.
    Last edited by JBeaucaire; 10-29-2012 at 09:51 AM.

Thread Information

Users Browsing this Thread

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

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