I am trying to build a function that will return the "ordinal value" of the day in the fiscal year. I have that part ok, but I don't want to have to change the dates every year. I have tried formatting a date in VBA excluding the year, but have no luck. If I don't specify a year in the date the current year is automatically used. For example if I write:
Format(#12/31#, "y") (to get the ordinal value of 12/31 of the current year
VBA AUTOMATICALLY changes it to Format(#12/31/current year#, "y").
I don't want to have to change the code every year. Is there a way around this?
Format(#12/31#, "y") (to get the ordinal value of 12/31 of the current year
VBA AUTOMATICALLY changes it to Format(#12/31/current year#, "y").
I don't want to have to change the code every year. Is there a way around this?