+ Reply to Thread
Results 1 to 4 of 4

Find Target Value in column A

  1. #1
    Registered User
    Join Date
    01-18-2006
    Posts
    12

    Find Target Value in column A

    I need help with syntax of the following code. What I trying do is Search sheet label “MRP” in Column A to find the value on Sheet ("Pay").Range("B1").Value. It doesn’t like the last line.

    Please Login or Register  to view this content.
    Last edited by ca1358; 07-06-2011 at 06:30 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,311

    Re: Find Target Value in column A

    Usually better if you post a sample workbook.

    However, try something like this:

    Please Login or Register  to view this content.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-18-2006
    Posts
    12

    Re: Find Target Value in column A

    I am getting runtime error 91
    Object variable or with block variable not set on this line
    MsgBox fndRng.Address

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,311

    Re: Find Target Value in column A

    Probably means it can't find whatever is in cell B1 on the Pay worksheet.

    Post the workbook you're using to test it.


    Regards

+ 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