abc = Sheets("02").Range("calc02").Value // value is: Rabat 5%
xR = Mid(abc, 7, 1) // Result is: 5
This is ok, but what if the content is: Rabat 50%, or Rabat 100%
I want to extract this number only, whether it is one, two or three-digit.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
or, if you want xR returned as a number