PC Review


Reply
Thread Tools Rate Thread

Best Substitute for Range(cells(),cells()) in worksheet

 
 
Matthew Pfluger
Guest
Posts: n/a
 
      7th Feb 2008
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 With Quote
 
 
 
 
Matthew Pfluger
Guest
Posts: n/a
 
      7th Feb 2008
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unlocking range of cells/worksheet? =?Utf-8?B?REpvbmU=?= Microsoft Excel Misc 1 18th Apr 2007 06:50 PM
cells name or range name in a worksheet Jean-Pierre Bidon Microsoft Excel Programming 1 1st Feb 2006 11:23 AM
subtotal a range of cells on a different worksheet =?Utf-8?B?Y2hlcnls?= Microsoft Excel Worksheet Functions 0 2nd Nov 2005 08:37 PM
is there a way to protect a range of cells on a worksheet? =?Utf-8?B?dmV2YW5z?= Microsoft Excel Misc 1 17th Feb 2005 05:30 PM
Cells worksheet commands used for a range? Jethro[AGHL] Microsoft Excel Worksheet Functions 2 9th Sep 2003 02:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:22 AM.