RWayneH
asked on
Trying to make a formula blank.
If the following Ln on a sheet, grabs a value and that value is a Date.
ActiveWorkbook.Names.Add Name:="ColI", RefersToR1C1:="=" & Me.Name & "!R" & Target.Row & "C9" ' LnReqDelDate
however if the cell it is grabbing in column 9 from, is blank it returns: 1900-01-00
I use the formula on =ColI on another sheet to put that value in.
Is there another way to write the formula =ColI so that if it returns 1900-01-00 (meaning blank) , it can make it "" ??
ActiveWorkbook.Names.Add Name:="ColI", RefersToR1C1:="=" & Me.Name & "!R" & Target.Row & "C9" ' LnReqDelDate
however if the cell it is grabbing in column 9 from, is blank it returns: 1900-01-00
I use the formula on =ColI on another sheet to put that value in.
Is there another way to write the formula =ColI so that if it returns 1900-01-00 (meaning blank) , it can make it "" ??
Custom format the formula cell with dd/mm/yyyy;; to hide 1900-01-00.
ASKER
I cannot do that.. the required format is yyyy-mm-dd because if it is not blank it needs to stay and use the date and in that specific reformat.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
it is already.... I need it to be blank without the 1900-01-00 showing ""
ASKER
any other value is acceptable > today. I am having issue making the cell = ""
ASKER
ohhhh hello the suffix of ;; that worked. I feel tiny.
Okay I made them bold so that you don't miss the complete syntax.
Glad it worked at last for you.
Glad it worked at last for you.
ASKER
Thanks
You're welcome. Glad to help.