Results 1 to 5 of 5

Using MATCH within VBA to find a row number used elsewhere in code

Threaded View

  1. #1
    Forum Contributor
    Join Date
    10-16-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2003, 2010
    Posts
    151

    Using MATCH within VBA to find a row number used elsewhere in code

    Hi All

    I have a file I am trying to use to view / update data in a large table located in a separate workbook. The user will enter the item they want to review in cell B2 in one workbook and the cells are all using an Index/Match to pull in the data from the other workbook. I have an area to modify the information and then they can push "Update" and the new data will write to the data table in the other workbook. My problem is getting the row number from the item number the user has keyed in.

    Here is my latest attempt to return the row number:

    udRow = WorksheetFunction.Match(Cells(2, 2), dbBook.Cells(1, 2).Resize(dbLastRow, 1), 0)
    I would put everything in one file, but there are dozens of different workbooks that access the information in this table and everything seems to lose its mind when I change the file extension to .xlsm in order to save the macro.

    I would certainly appreciate any input on how to get this row number.

    Thanks
    Last edited by jacob@thepenpoint; 07-31-2013 at 11:01 AM.
    Jacob Albers
    Excel 2003 & 2010

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. find if number is a match
    By nikko50 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2013, 02:41 PM
  2. [SOLVED] Find match, find related cell and return that number
    By HelpHelpHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2012, 06:46 AM
  3. [SOLVED] how do you match code number with same criteria?
    By Exxcel Noob in forum Excel General
    Replies: 5
    Last Post: 11-04-2012, 12:12 PM
  4. Index and Match-find the the matching number
    By windme in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2008, 03:09 PM
  5. VBA Match or Find code
    By djvice in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2008, 08:03 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