Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I am writing a formula in VBA how do I refer to a cell relatively rather
than an exact cell? For example: Range("B1").Select Selection.End (xlDown) ActiveCell.Offset(1, 7).Select This puts me in cell in column "I" but the row is unknown to me. Now I want to write a formula that adds the numbers in columns B-D and subtracts the number in column J of the same line into column I. How do I reference cells on the same row but in different columns when I do not know the row number? And, can this be adjusted if I know the row number but the column is relative? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Position drawing object relative to cell | Excel Discussion (Misc queries) | |||
How to macro to relative position | Excel Discussion (Misc queries) | |||
Displaying a cell relative to the position to another cell | Excel Discussion (Misc queries) | |||
Relative Cell position NOT working with or without macro | Excel Discussion (Misc queries) | |||
Create cell formula from a relative position | Excel Programming |