Range selection macro

not very bright dave

Board Regular
Joined
Dec 20, 2004
Messages
244
Hi all

I have a dynamic range of data which will be added to constantly. This means that when I want to select the data I will require non-specific selection criteria. At the moment I have, starting at the very bottom of the worksheet:


Selection.End(xlUp).Select
Range(Selection, Selection.End(xlToLeft)).Select
Range(Selection, Selection.End(xlUp)).Select

My only problem is that I need to select down one row after this so to remove the header row. Can anyone help me with the code for this?

Many thanks

Dave
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Something like this?

Code:
Sub FindFirstEmptyCell()
    Dim myRow As Long
    myRow = Range("A1:A" & Range("A65536").End(xlUp).Row).Count
    Cells(myRow + 1, 1).Select
End Sub
 
Upvote 0

Forum statistics

Threads
1,203,506
Messages
6,055,800
Members
444,825
Latest member
aggerdanny

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