I have a workbook that combines two values into one cell and separates them by a slash ( / ). I need a macro to grab the data before or after the "/". I run into a problem when the value is more that one digit.
See attached workbook sample.
I have a workbook that combines two values into one cell and separates them by a slash ( / ). I need a macro to grab the data before or after the "/". I run into a problem when the value is more that one digit.
See attached workbook sample.
Last edited by Ricker090; 09-12-2011 at 01:05 PM. Reason: Solved
Hello Ricker090,
Use can do this very easily using the Split method. his will split a delimited string into a a 1-D array. Each element can then be returned directly. Here is your code with this change added.
![]()
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Ricker090,
There are a few ways you can do this...
Or you can use formulas:![]()
Please Login or Register to view this content.
Sorry Leith, same idea just some other options![]()
Please Login or Register to view this content.
Last edited by Chance2; 09-12-2011 at 12:32 PM. Reason: Duplicate posting
Thanks! I enjoy having options to chose from.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks