How to get Float type from general type in VBA

Copper Contributor

Hi,

 

I want to extract amount value in my worksheet. So every number after $ is to be shown in output and their is an edge case whenever the number is less then 1 it should be shown in output . I have created a dollarperc function in VBA to get the output. It's working whenever i encounter a $ value but it shows 0 for decimal entries.  PFA my macro enabled workbook. Please help, i'm badly stuck here. 

 

0 Replies