Macro to move cursor to row A from any cell in that row

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,692
Office Version
  1. 2016
  2. 2013
  3. 2007
Platform
  1. Windows
Use

Code:
Sub MM1()
Range("A" & ActiveCell.Row).Select
End Sub
 

DSCfromCFA

Board Regular
Joined
Feb 27, 2018
Messages
147
Office Version
  1. 365
Platform
  1. Windows
Clarification may be needed as to what exactly you want, as 'A' refers to columns, not rows

The 'Home' key will move the cursor to column A whilst remaining in the current row (or the topmost selected row if more than one row is selected).
'Ctrl +Home' will move the cursor to the top left cell, A1.

If neither of those are what you are looking for, the only alternate arrangement that I can think of is using 'Ctrl + Up Arrow' to move the cursor to the top row of the currently selected column (or if multiple columns are selected, to the top row of the left most currently selected columns).

shane
 

Watch MrExcel Video

Forum statistics

Threads
1,122,187
Messages
5,594,753
Members
413,930
Latest member
Nela817

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
Top