Arrhg! Userforms again
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Arrhg! Userforms again

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Stockton, California
    Posts
    281
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    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. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    London, UK
    Posts
    167
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default


    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. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    Stockton, California
    Posts
    281
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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

  4. #4
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #5
    MrExcel MVP Ivan F Moala's Avatar
    Join Date
    Feb 2002
    Location
    Auckland, New Zealand
    Posts
    4,209
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    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 <>

    What control are you using ??


    Ivan

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com