I'm sure this is a very elementary question but Im struggling to find the answer probably because I'm not familiar with the terms. (I'm fairly new to VB).
I'm writing a macro in Excel. I'm working down a column & moving the value in a cell to a cell in a different column. Once I've moved the value I want to focus to go back to where I picked up the value from.
To help illustrate this - I get to B3, find the value I expect & cut & paste to A4. Then I want to go back to B3 & continue moving down the B column.
When I find the value I do this:
which I know works because when I print it in MsgBox it gives me $B$3 - but how can I subsequently use this to take me back to B3?
This must be simple but I just can't figure it out.
Hope this makes sense. Thanks, Chris
I'm writing a macro in Excel. I'm working down a column & moving the value in a cell to a cell in a different column. Once I've moved the value I want to focus to go back to where I picked up the value from.
To help illustrate this - I get to B3, find the value I expect & cut & paste to A4. Then I want to go back to B3 & continue moving down the B column.
When I find the value I do this:
Code:
Curr_Cell_Val = ActiveCell.Address
which I know works because when I print it in MsgBox it gives me $B$3 - but how can I subsequently use this to take me back to B3?
This must be simple but I just can't figure it out.
Hope this makes sense. Thanks, Chris