LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default How Do I Expand A Set Range In The Match Command

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to expand Index/Match formula Chris Excel Worksheet Functions 2 August 30th 08 08:24 PM
Automatically expand cells to match the data contained bobk544 Excel Discussion (Misc queries) 2 March 7th 08 01:16 PM
Range that expand Juran Excel Discussion (Misc queries) 1 August 8th 06 01:52 AM
Cannot Expand Named Range - when size of the Range exceeds Snig Excel Discussion (Misc queries) 1 July 7th 05 01:46 PM
Data Range Will Not Expand Dmorri254 Excel Worksheet Functions 4 April 11th 05 09:06 PM


All times are GMT +1. The time now is 11:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"