Agreed, every cell will have different data that could be reference, hence they need to be named. The order could change hence I can't relay on default cell names, I want the value tied to the cell name.
this is fine, does this work though, as it does not for me:
Sub does_it_work()
For i = 65480 To 65536
With ActiveSheet
ActiveWorkbook.Names.Add _
Name:="a_" & i, _
RefersTo:="=" & .Name & "!" & .Cells(i, "A").Address
End With
Next i
end sub
Basically I need to name...
Try running this code in Excel, you should find the first loop works fine, and the cells are named. The second loop fails, why? I have searched the internet but can't find anything on it.
Sub name_those_cells()
Dim i As Long
Dim objRange As Range
Cells(1, 2).Value = "started"
For i = 1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.