VB Code Required for Selecting the below cell

srivatsaj

New Member
Joined
Jul 14, 2011
Messages
2
I will use the Ctrl + End for selectiing the last active cell. Then when I select the below cell its getting registered in VB with the actual cell reference.

How do i overcome with this?

Regards
Srivatsa J
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try like this

Code:
Sub NewLine()
Range("A" & Rows.Count).End(xlUp).Offset(1).Select
End Sub
 
Upvote 0
Actually my requirement is,
If there is a data in 2 columns i.e. in Column A from A1 to A20 and in Column B from B1 to B20.

I would like to cut the data in B1 to B20 range and paste it in A21 and below.

Can you help me with this please?

Regards
Srivatsa J
 
Upvote 0
Try

Code:
Sub ctpaste()
Dim LR As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
Range("A1:B" & LR).Cut Destination:=Range("A" & LR + 1)
Application.CutCopyMode = False
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,777
Members
452,942
Latest member
VijayNewtoExcel

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