Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Reference Ranges

snippet of code below


Ques - when your using the Cells(i) below is it possible to then access a
Range by doing
something like this??

Range("A"Cells(i) : "E" Cells(i))

In other words once I find what I am looking for I want to do something to
the row I am on
I usually reference a range like - A3:E3 but since the row is described by
Cells(i) how do I
use that in a range reference??



For i = 1 To rng.Count

If code < rng.Cells(i).Value Then


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Reference Ranges

Something like:

Range("A" & Cells(i) & ":E" & Cells(i)).

cells(1)=3
?Range("A" & Cells(1) & ":E" & Cells(1)).Address
$A$3:$E$3


Regards

Trevor


"Chris" wrote in message
...
snippet of code below


Ques - when your using the Cells(i) below is it possible to then access a
Range by doing
something like this??

Range("A"Cells(i) : "E" Cells(i))

In other words once I find what I am looking for I want to do something to
the row I am on
I usually reference a range like - A3:E3 but since the row is described by
Cells(i) how do I
use that in a range reference??



For i = 1 To rng.Count

If code < rng.Cells(i).Value Then




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
variable reference ranges SC Excel Discussion (Misc queries) 2 September 14th 07 05:18 AM
Concatenate a reference to named ranges in other workbook sbardon Excel Worksheet Functions 4 October 15th 06 01:58 AM
Named ranges which seem to reference old workbooks/worksheets mhudsonak Excel Discussion (Misc queries) 2 September 11th 06 03:42 PM
How to Variable Reference Row Ranges? VicWestVan Excel Programming 5 July 26th 06 04:50 PM
linest won't accept multiple reference ranges Alex Gardner Excel Worksheet Functions 3 May 18th 05 01:20 PM


All times are GMT +1. The time now is 02:59 AM.

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

About Us

"It's about Microsoft Excel"