>I want the + sign also in between ..
I'm guessing you want the + sign in front.
Sub Demo()
MsgBox DCFormat("10+930.000") ' gives +940.000
End Sub
Function DCFormat$(pStr$)
Dim f1%, iPos%
iPos = InStr(pStr, "+")
f1 = Val(Left$(pStr, iPos - 1)) + _
Val(Mid$(pStr, iPos + 1))
DCFormat = IIf(f1 > 0, "+", "") & Format(f1, "000.000")
End Function ' D-C
sharmashanu wrote:
>Hi All
>I want to convert 10+930.000 to numric value. I have imported
>these number and it is saved as charecter. I want the + sign also in
>between once it is converted. Thanks all for any help
>Regards
>Shanu
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----