Highlighting an Entire Range, then wanting a particular active cell

CR2515

New Member
Joined
Sep 3, 2017
Messages
14
Say I select columns A through G all the way down, then I want my cursor and active cell to be in D1.

How can I keep my range selected but get over to active cell D1?

Thanks.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Press Alt+F11 to bring up the VBA editor. Select Insert>Module and paste the following code into the new module:

Code:
Public Sub HighlightRangeActivateCell()
    Columns("A:G").Select
    Range("D1").Activate
End Sub

Now close the VBA editor and back on your sheet press Alt+F8 to bring up the list of macros. Select "HighlighRangeActivateCell" and run it.

WBD
 
Upvote 0
Thanks. Also found I could highlight a range and scroll through headers and individual cells using the TAB key thereafter.
 
Upvote 0

Forum statistics

Threads
1,216,552
Messages
6,131,320
Members
449,644
Latest member
tbhoola

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