I'm trying to set a current named range in my sheet equal to a dimmed range in my macro code. I'm getting a Subscript out of range error, so I know my coding is off. This is what I have:
Any help with this would be greatly appreciated. Thanks!
Hank
Code:
Public Sub FilterLists_Click()
Dim oRange1 As Range
Dim RangeNum As Long
RangeNum = Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row
oRange1 = Sheets("Sheets1").Range("A1:A" & RangeNum)
Range("ListName") = oRange1
End Sub
Any help with this would be greatly appreciated. Thanks!
Hank