Hi
I have built an excel form where one of the textboxes is initialized with a percentage format. But when I try to extract values from that text box (either txtbox.Text or txtbox.Value) I get an error message because it is a type mis-match.
Any ideas on how I can keep the formatting (important) and be able get the values (without the % at the end) so I can use them in my formulas?
Thanks i tried casting CDbl(txtbox.Text) and CDBL(txtbox.Value) but errors both times
I have built an excel form where one of the textboxes is initialized with a percentage format. But when I try to extract values from that text box (either txtbox.Text or txtbox.Value) I get an error message because it is a type mis-match.
Any ideas on how I can keep the formatting (important) and be able get the values (without the % at the end) so I can use them in my formulas?
Thanks i tried casting CDbl(txtbox.Text) and CDBL(txtbox.Value) but errors both times