Rexxx
MIS
- Oct 16, 2001
- 47
What is the VB command to build a range beginning with the last occupied cell in a certain column plus 170 rows?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub liminal()
Dim iCol As Integer
Dim lRow As Long
iCol = ActiveCell.Column
lRow = Cells(65536, iCol).End(xlUp).Row
Range(Cells(lRow, iCol), Cells(lRow + 170, iCol)).Name = "hullaballoo"
Range("hullaballoo").Interior.Color = vbRed
End Sub