Excel vba - convert string to number Excel vba - convert string to number vba vba

Excel vba - convert string to number


If, for example, x = 5 and is stored as string, you can also just:

x = x + 0

and the new x would be stored as a numeric value.