Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,608
- Office Version
- 365
- 2016
- Platform
- Windows
I have a string ... 12 : 07-Jun-18 - 20-Jun-18
I am looking for a vba solution to extract the whole number that starts the string. In this case, 12. If this number was always two digits, using left(string,2) would be a simple solution, but would not work for single digit numbers (1-9). The preceding number will never be more than 2 digits.
Is anyone able to provide a solution for me?
I am looking for a vba solution to extract the whole number that starts the string. In this case, 12. If this number was always two digits, using left(string,2) would be a simple solution, but would not work for single digit numbers (1-9). The preceding number will never be more than 2 digits.
Is anyone able to provide a solution for me?
Last edited: