business_analyst
Board Regular
- Joined
- Jun 5, 2009
- Messages
- 99
Hello All,
So, I have a bunch of phone numbers stored in excel. These numbers are listed in the following format: (555) 555-5555
The userform I am creating will pull this number as is (a string) into a single textbox. This I got to work fine.
However, to make it cleaner, users are requesting that I have 3 seperate textboxes. 1 for the zip, 1 for the first three digits of the number, and 1 for the last four digits. No other characters, just the integers returned to each of the 3 textboxes.
Is there a feasible way for me to break up the string phone number from the worksheet into these 3 groups of integers, using VBA? Any help or opinions would be greatly appreciated.
So, I have a bunch of phone numbers stored in excel. These numbers are listed in the following format: (555) 555-5555
The userform I am creating will pull this number as is (a string) into a single textbox. This I got to work fine.
However, to make it cleaner, users are requesting that I have 3 seperate textboxes. 1 for the zip, 1 for the first three digits of the number, and 1 for the last four digits. No other characters, just the integers returned to each of the 3 textboxes.
Is there a feasible way for me to break up the string phone number from the worksheet into these 3 groups of integers, using VBA? Any help or opinions would be greatly appreciated.