Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Substring
#2
Not Solved
Swat Wrote:




Can you try CDbl, this will give you the number portion and ignore the $ sign. I am guessing this is what you are trying to accomplish.
See sample code below.


strMonthlyPremium = "$87.67"
strAnnualPremium = "$1,052.00"
MonthlyPremium = cdbl( strMonthlyPremium )
AnnualPremium = cdbl( strAnnualPremium )

msgbox MonthlyPremium
msgbox AnnualPremium


Hi,
Thanks. But I am trying to take those figures out of the sentence. Does this make sense? I have to find them both in the sentence and take them out with or without $ sign. That part does not matter.
Reply


Messages In This Thread
Substring - by Anna - 07-16-2008, 07:11 PM
RE: Substring - by anemuday - 07-20-2008, 10:36 PM
RE: Substring - by bhanu_bp7 - 07-21-2008, 03:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  VBA Code to read a substring Dwarak Calayampundi 2 2,581 10-04-2016, 09:15 PM
Last Post: venkatesh9032

Forum Jump:


Users browsing this thread: 1 Guest(s)