Hi guys
Please can you help me with this code. I am trying to update named ranges via excel vba
range name = "Building-Name" already exists.
It had less than 100 records and this had increased to over 100.
I want the macro to auto update the named range every time I add extra records.
Please would you help me. I get an error code when I try the code below.
Regards
excel2006
Please can you help me with this code. I am trying to update named ranges via excel vba
range name = "Building-Name" already exists.
It had less than 100 records and this had increased to over 100.
I want the macro to auto update the named range every time I add extra records.
Please would you help me. I get an error code when I try the code below.
Code:
Public Sub Example()
Range("g1:g" & Range("g1").End(xlDown).Row).Name = "Building-Name"
End Sub
Regards
excel2006