bin
Computer
- Jul 16, 2001
- 1
In programming a macro, I would like to have an ABSOLUTE column reference, with a REALITIVE row.
Example,
I have 4 column locations I want to go (ie. C,Z,BB,CD). I want to make 4 seperate macros to go to the 4 seperate locations, with the following
condiditions:
a) I want to mantain my row position (ie. if the ActiveCell is "C11" and I run the "Z" macro, I want my final resting point to be "Z11"
b) I want to be able to run the 4 macros in ANY order (This is the part I am having trouble with)
One possible solution I had was if there were some command (within VB) that would sense where the ActiveCell was and be able to return a
row/column value. I could then use these values in a formula that would end up using the Scroll to move the screen accordingly command.
I am really in a jam on this, so I would appreciate any help or advice that you could provide.
Example,
I have 4 column locations I want to go (ie. C,Z,BB,CD). I want to make 4 seperate macros to go to the 4 seperate locations, with the following
condiditions:
a) I want to mantain my row position (ie. if the ActiveCell is "C11" and I run the "Z" macro, I want my final resting point to be "Z11"
b) I want to be able to run the 4 macros in ANY order (This is the part I am having trouble with)
One possible solution I had was if there were some command (within VB) that would sense where the ActiveCell was and be able to return a
row/column value. I could then use these values in a formula that would end up using the Scroll to move the screen accordingly command.
I am really in a jam on this, so I would appreciate any help or advice that you could provide.