add numbers in string

  • Thread starter Thread starter billypit786
  • Start date Start date
B

billypit786

String=1000;2000;3000;4000

how can i add this nos?

i need this
total = 1000+2000+3000+4000=10000
 
There's a simpler way:

YourString ="1000;2000;3000;4000"
YourTotal = Eval(Replace(YourString, ";", "+"))
 
Back
Top