Jump and paste to the last Row of current column - Excel 2019

SanjayGMusafir

Well-known Member
Joined
Sep 7, 2018
Messages
1,503
Office Version
  1. 2021
Platform
  1. MacOS
Dear Experts
I often need to copy data from few columns in a row and then paste it in the same columns in the last row of a table.

I tried writing a code using information from here and there, but it's not working at all. Can you help find me the error and give me a workable code.

Thanks a lot

Code:
Sub JumpClientsBottom()
'
' JumpClientsBottom Macro
'


'
    Sheets("Client").Select
    
    Dim lRow As Long
    lRow = Cells(rows.Count, 1).End(xlUp).Row
    
    'To go to last row of the same Active column
    Range((ActiveCell.Column) & lRow).Select
    
    
End Sub
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Maybe something like this:

Code:
    Dim lRow As Long
    Dim col as Long

    lRow = Cells(rows.Count, 1).End(xlUp).Row
    col = ActiveCell.Column
    
    'To go to last row of the same Active column
    Cells(lRow, col).Select
 
Last edited:
Upvote 0
You are welcome!

I often like to use the Cells(row, column) range referencing, instead of Range(...), as Cells allows you to use the column letter or number (which is especially convenient when .Column in VBA returns the column number, not the letter!).
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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