I want to define the range from a given cell and all data below within the same column
strDataStart is the named cell in the worksheet that want to start from
Below is what I tried and failed.
Code
Function rngDataCol(strDataStart As String) As Range
'
' To define data range start from cell strDataStart and the rest of column
'
' Written 22/11/2006 by XXX
'
Dim rngDataEnd As Range
' Define Last cell
rngDataEnd = Range("strDataStart").End(xlDown)
' Define Data Range
rngDataCol = Range(Range("strDataStart").Address, rngDataEnd.Address)
End Function
Display More
Many thanks