Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Referring to a row or column

First you don't need address as you already have a range object.

rng1.Offset(l, k + 4).EntireRow

to get the whole row

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Nick London" wrote in message
...
I have a macro that first searches for a ceratin cell with some pre

specified
content. When finding that cell it then makes a list. I want to have the
entire row that cell that i found to have bold fonts or some other
adjustment. I then want to have every second row below the cell that I

found
to be gray or some other adjustment. Thus I need to know how how refer to

an
entire row. My code now is e.g. :

Range(rng1.Offset(l, k + 4).Address) = dblSumRelative

See I use the address of the cell that contains the pre defined info in
order to refer to other cells. This is becuse the address of the cell is
variable. Thus, how do you write:

Range(rng1.Offset(here I want to refer to row, k+4).Address).Select

Thanks!



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
Referring to a portion of a column LewisM Excel Discussion (Misc queries) 1 May 28th 10 12:13 AM
Referring to a list in one sheet to another column on a different jmamakes3 Excel Discussion (Misc queries) 0 July 31st 06 11:42 PM
Referring to a column Hru48 Excel Discussion (Misc queries) 1 January 31st 06 05:59 PM
Referring to a column Mike D. Excel Programming 1 March 1st 05 03:54 PM
Referring to a column Helen Excel Programming 3 May 10th 04 02:40 PM


All times are GMT +1. The time now is 05:37 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"