Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Greetings,
I have a problem with the number of rows my formula will look at. The code uses MATCH to find the row of the invoice being modified. As you can see from the code sample it is limited to 1765 rows. Dim x As Long Dim wks_target As Worksheet Dim wks_source As Worksheet Set wks_target = Worksheets("INV") Set wks_source = Worksheets("Enter") 'get row_number x = Application.WorksheetFunction. _ Match(wks_source.Range("AP2"), _ wks_target.Range("A1:A1765"), 0) '<<< 'paste values wks_target.Rows(x) = wks_source.Rows(100).Value How can this be changed to accept an unlimited number (within the 65536 Excel limit). I think that Range("A65536").End(xlUp) is what I need, but I don't know how to insert it! Any help would be appreciated, TIA -Minitman |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to expand Index/Match formula | Excel Worksheet Functions | |||
Automatically expand cells to match the data contained | Excel Discussion (Misc queries) | |||
Range that expand | Excel Discussion (Misc queries) | |||
Cannot Expand Named Range - when size of the Range exceeds | Excel Discussion (Misc queries) | |||
Data Range Will Not Expand | Excel Worksheet Functions |