Set ActiveCell to one Row Lower Than Current ActiveCell

PedroVision

New Member
Joined
Oct 23, 2024
Messages
13
Office Version
  1. 2019
Platform
  1. Windows
A new day...a new problem (opportunity!)...

Is there a way to set a new ActiveCell...by referencing the current ActiveCell's address??

Such as...

New ActiveCell = Current ActiveCell (Current Row+1, Current Column)


I've inserted my new line, now I need the ActiveCell to move down to the newly inserted line, to be on that new line I just inserted...

Does any of that make sense? I think it does...I hope it does...
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Just use:
VBA Code:
ActiveCell.Offset(1, 0).Select
and that will select the cell just below the active cell and make that the new active cell.

However, if this is part of a larger VBA procedure, you should really try to avoid using ActiveCell and selecting cells. It is usually unnecessary and can actually slow your code down (especially if you are using it in a loop).
 
Upvote 0
Solution
Thank you Joe4!

This bit of code is at the end of the procedure...minimal impact on operation. I remembered the "Offset"...but forgot the ".Select"...thank you man, I really appreciate the help!
 
Upvote 0
You are welcome. Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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