Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default program a cell in excell to reference a cell below a referenced ce

in my program Cell 1 references a specific cell in another worksheet. In my
program Cell 2 wants to reference the cell below the referenced cell in Cell
1. i am using Cell 1 as my reference point so Cells 2, 3, 4, 5, 6, etc...
will reference the data/Rows below the Referenced cell in the other
worksheet.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default program a cell in excell to reference a cell below a referenced ce

Hi Josh,

Try something like:

Dim rng1 As Range, rng2 As Range, rng3 As Range

Set rng1 = Sheets("Sheet2").Range("A1")
Set rng2 = rng1(2)
Set rng3 = rng1(3)


---
Regards,
Norman



"Josh" wrote in message
...
in my program Cell 1 references a specific cell in another worksheet. In
my
program Cell 2 wants to reference the cell below the referenced cell in
Cell
1. i am using Cell 1 as my reference point so Cells 2, 3, 4, 5, 6, etc...
will reference the data/Rows below the Referenced cell in the other
worksheet.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default program a cell in excell to reference a cell below a referenced ce

set Cell2 = Cell1.offset(1,0)
set Cell3 = Cell1.offset(2,0)
'etc etc

Tim

"Josh" wrote in message
...
in my program Cell 1 references a specific cell in another worksheet. In
my
program Cell 2 wants to reference the cell below the referenced cell in
Cell
1. i am using Cell 1 as my reference point so Cells 2, 3, 4, 5, 6, etc...
will reference the data/Rows below the Referenced cell in the other
worksheet.




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
Return Results of a cell based on cell referenced in a cell Drew Excel Worksheet Functions 4 September 3rd 09 06:19 PM
Need fucntion to reference cell on worksheet referenced by known n JWirt Excel Worksheet Functions 3 March 2nd 09 06:18 AM
Change Text Color in one cell based upon entry in referenced cell Tee Excel Discussion (Misc queries) 3 September 12th 08 10:07 PM
Get the reference from a referenced cell Niklas Excel Worksheet Functions 2 January 16th 06 05:00 PM
Get the reference from a referenced cell Niklas Excel Programming 2 January 16th 06 05:00 PM


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