Apparently if a string represents a date then it can't be used to set a defined name.
My VBA statement
where the variable latestDate = "2/19/2018" sets the defined name latestDate to "=43150"
How can I set the named field to "2/19/2018"? I didn't expect an issue when the string is a date.
My VBA statement
Code:
ActiveWorkbook.Names.item("latestDate").Value = latestDate
How can I set the named field to "2/19/2018"? I didn't expect an issue when the string is a date.
Last edited: