VBA code to move cursor down one cell

Rob21030

New Member
Joined
Feb 24, 2006
Messages
3
Any one have simple code for the end of a macro to move the cursor down one row to the cell immediately below where the macro did whatever it was supposed to do?

Thanks.

Rob
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Welcome to the Board!

Try:

Code:
ActiveCell.Offset(1).Select

But it's generally not necessary to Select objects in order to work with them, so you might want to post you code and see if we can optimize it for you.

Hope that helps,

Smitty
 
Upvote 0
Thanks. My needs are as simple as the solution you provided. I just want to go down one and be done. In old Lotus speak a simple D (as I recall) would do the same thing.

Rob
 
Upvote 0
I had this question as well, and this solution solved it. I wanted to write a macro to add a row BELOW the current Row. For some reason, Excel for Mac OS does not have an option of Add Below. So, I had to move down one cell, and then add a row Above. Worked like a charm! Thanks for sharing!
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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