GiraffetheGeek
Board Regular
- Joined
- May 25, 2011
- Messages
- 58
Hi there,
I am a beginner with VB so forgive me is this is an elementary error
I have gone blank. I've sat here for the last 15 minutes and for the life of me cannot remember how to do this.
I am trying to get VB to select a range of cell relative to two named cells.
I have used this
This obviously is wrong, but I cannot remember the correct way to do this.
I want it to select the range of cells 1 below the cell named TitleRow over to the cell 1 above and 14 to the right of the cell "LastRow".
Once I get this working the offset values will change depending on a value selected in another cell by the user, but it's just this line that is bafflling me.
I am a beginner with VB so forgive me is this is an elementary error
I have gone blank. I've sat here for the last 15 minutes and for the life of me cannot remember how to do this.
I am trying to get VB to select a range of cell relative to two named cells.
I have used this
Code:
Range("TitleRow").Offset(1,0):Range("LastRow").Offset(-1,14).Select
This obviously is wrong, but I cannot remember the correct way to do this.
I want it to select the range of cells 1 below the cell named TitleRow over to the cell 1 above and 14 to the right of the cell "LastRow".
Once I get this working the offset values will change depending on a value selected in another cell by the user, but it's just this line that is bafflling me.