Hi there,
I have a section of a much longer bit of code that selects a range of dates and makes a named range that gets used in a number of places.
For a while this code worked just fine, but I moved the workbook to another computer and now when it runs, the named range that gets added/created is not _Dates, but @_Dates and it does not work correctly.
If I hand delete the @ then it works. I'm probably supposed to know this, but why does the @ show up and how do I get rid of it?
I have a section of a much longer bit of code that selects a range of dates and makes a named range that gets used in a number of places.
VBA Code:
Set dateRef = Cells(rCount, 1).Offset(-175).Resize(176, 1)
ThisWorkbook.Names.Add Name:="_Dates", RefersTo:=dateRef
Range("a2:a" & rCount + 1).NumberFormat = "yyyy-mm-dd;@"
For a while this code worked just fine, but I moved the workbook to another computer and now when it runs, the named range that gets added/created is not _Dates, but @_Dates and it does not work correctly.
If I hand delete the @ then it works. I'm probably supposed to know this, but why does the @ show up and how do I get rid of it?