Arrhg! Userforms again

robfo0

Active Member
Joined
Feb 19, 2002
Messages
281
Can you not format a field in a userform as a percentage? I'm trying to use this code:
FIRST_RATE = Format(Worksheets("Sheet1").Range("RATE"), "0.00%")

But i keep getting a Type Mismatch error. The data in the cell named "RATE" is formatted as a percentage also.

HELP! Thanks :)
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
You might want to check that the value in the referenced cell is actually numerical, that is to say the percentage symbol appears due to the cell format, rather than actually being in the cell contents.
 
Upvote 0
It is...i input 12.99 in the reference cell. I tested it in a payment to make sure it is right :( any other ideas? thanks
 
Upvote 0
Hi robfo0

I just tried this and it worked ok.

TextBox1.Value = Format(Range("A1"), "0.00%")

What sort of Control are you parsing to?
 
Upvote 0
On 2002-03-29 16:18, robfo0 wrote:

But i keep getting a Type Mismatch error. The data in the cell named "RATE" is formatted as a percentage also.

HELP! Thanks :)

Hi
It worked for Me ??
You say <<Can you not format a field>>

What control are you using ??


Ivan
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top