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

SanjayGMusafir

Well-known Member
Joined
Sep 7, 2018
Messages
1,450
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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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,215,161
Messages
6,123,377
Members
449,097
Latest member
Jabe

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