Hi I have th following VBA code
Sub Macro1()
'
' Macro1 Macro
'
Dim lr As Long
lr = Range("A2000").End(xlUp).Row
Range("chtname").AutoFill Destination:=Range("B1:B" & lr)
End Sub
What this does is autofill the cells in column B (which is named range chtname) based on the range of column A.
This works as it is but rather than use the range A2000 I want to use another named range "chtfirst" as the reference column.
I also can't get the VBA to work ("B1:B" & lr) using the named range "chtname"
Any ideas?
Sub Macro1()
'
' Macro1 Macro
'
Dim lr As Long
lr = Range("A2000").End(xlUp).Row
Range("chtname").AutoFill Destination:=Range("B1:B" & lr)
End Sub
What this does is autofill the cells in column B (which is named range chtname) based on the range of column A.
This works as it is but rather than use the range A2000 I want to use another named range "chtfirst" as the reference column.
I also can't get the VBA to work ("B1:B" & lr) using the named range "chtname"
Any ideas?