I am trying to build 2 macros to trim the contents of all cells in a column. The cells contain the text: #### THRU #### (the numbers could be more or less than 4 digits).
For column A, I need a macro that will take the contents of each cell in the column and using the 1st space as a delimiter delete the space to the end of the cell.
Example: 1111 THRU 9999
The macro will result in just 1111 remaining in the cell. The string "THRU 9999" would be deleted.
For colunn B, I need a macro that will use the 1st position in the cell as a delimiter and delete everything up to and including the 2nd space, but leave the 2nd group of numbers alone.
Example: 1111 THRU 9999
The macro will result in the string "1111 THRU " being deleted and just leave 9999 in the cell.
Any help would be greatly appreciated. Thanks.
Bookmarks