The problem, I think, is that I'm ending up with illegal characters so can't use the string as a range name and I don't know where the characters are being inserted. I also understand a UDF can be created to clean the string, but I simply can't figure out to use the UDF with VBA.
Help.
TIA
I've also tried .Value = .Value
Ron
Help.
TIA
Code:
Dim tCell As Range
Set tCell = Cells(1, LastCol).Offset(0, 1)
With tCell
.NumberFormat = "mm-dd-yyyy"
.FormulaR1C1 = "=""User_"" & TEXT(TODAY(),""mm-dd"")"
.Copy
.PasteSpecial xlPasteValues
.NumberFormat = "@"
End With
tCell.Name = tCell
I've also tried .Value = .Value
Ron