![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 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 |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: London, UK
Posts: 167
|
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. |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
It is...i input 12.99 in the reference cell. I tested it in a payment to make sure it is right
|
|
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
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? |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
It worked for Me ?? You say < What control are you using ?? Ivan |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|