Jaymond Flurrie
Well-known Member
- Joined
- Sep 22, 2008
- Messages
- 921
- Office Version
- 365
- Platform
- Windows
Does someone here have a VBA script that reverses the date transforms? That is, when Excel sees stuff like 11.84, it says that "yippee, this is a date and I couldn't care less whether you think otherwise -> Nov.84 that is and you as a user can shove your ideas of numbers to where the sun doesn't shine". And no, changing that to number format definitely does not give anything close to correct results, since the number is counted from 1900 or 1904 dates and gives tens of thousands as the result.
So, I'm looking for a script that simply will undo the the date recognize. And no, this can't be any manual work of cell formattings etc. since I have accounting data of thousands of rows that comes from a source file, that might already be "infected".
Basically the function could be something like
but I think this has been already solved somewhere carefully, so most likely no need to re-invent the wheel.
So, I'm looking for a script that simply will undo the the date recognize. And no, this can't be any manual work of cell formattings etc. since I have accounting data of thousands of rows that comes from a source file, that might already be "infected".
Basically the function could be something like
Code:
Function reverseidiotictranslation(infecteddata As String)
Dim result As Double
result = whateverthetranslationfunctionactuallyis(infecteddata)
reverseidiotictranslation = result
End Function
but I think this has been already solved somewhere carefully, so most likely no need to re-invent the wheel.
Last edited: