Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Best Substitute for Range(cells(),cells()) in worksheet

I'd like to know what the best substitute for the Range(cells(),cells())
method is. Specifically, I have a named range pointer cell that I would like
to use to make another named range like this:

RefersTo:=Range(range("ptrCell"),cells(row(range(" ptrCell")),256))

I thought of using
1. Cell("address",...) twice, concatenate, and use INDIRECT
2. OFFSET(FirstCell,0,0,1,COL(SecondCell)-COL(FirstCell))

Without using a UDF, has anyone a better suggestion? Thanks,

Matthew Pfluger
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Best Substitute for Range(cells(),cells()) in worksheet

Of course, COL should have been COLUMN.

"Matthew Pfluger" wrote:

I'd like to know what the best substitute for the Range(cells(),cells())
method is. Specifically, I have a named range pointer cell that I would like
to use to make another named range like this:

RefersTo:=Range(range("ptrCell"),cells(row(range(" ptrCell")),256))

I thought of using
1. Cell("address",...) twice, concatenate, and use INDIRECT
2. OFFSET(FirstCell,0,0,1,COL(SecondCell)-COL(FirstCell))

Without using a UDF, has anyone a better suggestion? Thanks,

Matthew Pfluger

Reply
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
Copying A Range of Cells to Another Worksheet Rodman Excel Discussion (Misc queries) 4 May 6th 08 09:53 PM
Unlocking range of cells/worksheet? DJone Excel Discussion (Misc queries) 1 April 18th 07 06:50 PM
cells name or range name in a worksheet Jean-Pierre Bidon Excel Programming 1 February 1st 06 11:23 AM
subtotal a range of cells on a different worksheet cheryl Excel Worksheet Functions 0 November 2nd 05 08:37 PM
is there a way to protect a range of cells on a worksheet? vevans Excel Discussion (Misc queries) 1 February 17th 05 05:30 PM


All times are GMT +1. The time now is 12:03 AM.

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"