Remember Range Address

Ivan Howard

Active Member
Joined
Nov 10, 2004
Messages
333
Hi All,

I have a simple problem, but not sure how to do it.

I need to be able to record the active cell address in order to be able to go back to the same cell once I have run a macro. I think it is done with a "Target.Range" macro, but have no idea how to do it.

Please could someone give me a hand.

Thanks very much.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Thanks very much Peter.

This works well, but to understand it properly the question I have is that when you hover over "cell" when in break mode, it shows the contents of the active cell and not the address. Will this hinder the result if there is more than one cell with the same content, or does it actually use the cell address?
 
Upvote 0
It sets cell to the same range as the selected cell. It doesn't depend on its value.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top