I am very new to VBA and I am alone here, so there is no one I can go to for advice.
I have a spreadsheet that has a column formatted as Text. The cells contain mostly numeric data, many of which begin with zero. My problem arises when I encounter data with a Dash in it. The Sort function ignores the Dash, but the VBA Compare does not. So VBA determines that the data is out of sequence. 1234 sorts in front of 1-345, but 1234 compares larger then 1-345.
Is it possible to perform a VBA Sort that will produce output that compares as being in sequence?
Thank You for any assistance you can provide, and Thank You for your time.
I have a spreadsheet that has a column formatted as Text. The cells contain mostly numeric data, many of which begin with zero. My problem arises when I encounter data with a Dash in it. The Sort function ignores the Dash, but the VBA Compare does not. So VBA determines that the data is out of sequence. 1234 sorts in front of 1-345, but 1234 compares larger then 1-345.
Is it possible to perform a VBA Sort that will produce output that compares as being in sequence?
Thank You for any assistance you can provide, and Thank You for your time.