I am trying to take a string (specifically one in the format "2008-09-01 00:00") and write an if statement to perform a process if the value to the right of the rightmost colon is anything but "00"
I have extracted the text from the cell using the code:
"Mytext" displays "2008-09-01 00:00"
I do not know how to use a colon as a delimiter to find the value of the last two values in the string. Would I use the "Split()" function?
I have extracted the text from the cell using the code:
Code:
For h = 2 To NumberOfRows Cells(h, 1).Select Dim v As Variant Mytext = Cells(h, 1).Text
I do not know how to use a colon as a delimiter to find the value of the last two values in the string. Would I use the "Split()" function?
Comment