Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Let's say I named the first column "ALPHA" and that I want to perform some function on it...
If I use this... Set myRange = Range("A2", Range("A65536").End(xlUp)) It will process only those rows with data in them... so if I type information into the first 5 rows... it will process rows 2 through 5. All good. But if someone inserts a column... the process looks at the wrong field... so I tried... Set myrange = Range(Range("ALPHA"), Range("ALPHA").End(xlUp)) But it tries to process 1,048,576 rows. !!!! What I need is the correct way to write something like... Set myrange = Range(Range("ALPHA".ROW=2 ), Range("ALPHA". ROW = 1000000).End(xlUp)) How do I specify a named range-row? How do I specify the last row in a range that actually has data? Thanks! Jerry |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Setting a column of a 2D array = named range | Excel Programming | |||
Named ranges vs setting range in code | Excel Programming | |||
If any cell in named range = 8 then shade named range | Excel Programming | |||
setting a range using a named list in vba | Excel Programming | |||
Setting named range in VBA- how to set as formula/reference instead of text string? | Excel Programming |