ndendrinos
Well-known Member
- Joined
- Jan 17, 2003
- Messages
- 1,694
This code (restores named ranges in case they get in trouble) errors like this
& the $ sign of $A$2,0,0 is highlighted
What am I doing wrong again?
Code:
Compile error/Invalid character,syntax error
Code:
Sub RestoreNamedRanges()
Dim Rng1 As Range
Set Rng1 =OFFSET(Customers!$A$2,0,0,COUNTA(Customers!$A:$A),1)
ActiveWorkbook.Names.Add Name:="Customers", RefersTo:=Rng1
End Sub
What am I doing wrong again?
Last edited: