+ Reply to Thread
Results 1 to 7 of 7

Userform Number Format with Control Source

  1. #1
    Registered User
    Join Date
    07-24-2006
    Location
    Dublin, Ireland
    Posts
    44

    Userform Number Format with Control Source

    Friends - a simple problem has defeated me most of the day

    My Userform1 contains a text box which inherits Data inputs from ControlSource. Control Source takes its input from Sheet1: A1
    When the text box is linked to the control source cell, it ignores the format code in Sheet1;A1.
    How can I specify the number format of a text box that is linked to a control source cell?

    Example: TextBox22 inherits input from Sheet1: Cell A1 via Control Source. In this case Sheet1:A1 contains a percentage 5.03% (example)
    I want the Textbox to display 5.03% when the userform opens.
    I thought the following would do it..but it renders 5.03232545554544 etc...

    Please Login or Register  to view this content.
    Thanks Conor

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Userform Number Format with Control Source

    Maybe

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-24-2006
    Location
    Dublin, Ireland
    Posts
    44

    Re: Userform Number Format with Control Source

    nope.... I must be msiing something else

    your line above is missing a closing ")" , but still doesn't work

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Userform Number Format with Control Source

    Might be easier if you can post a work file.

  5. #5
    Registered User
    Join Date
    07-24-2006
    Location
    Dublin, Ireland
    Posts
    44

    Re: Userform Number Format with Control Source

    sample file attached
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Userform Number Format with Control Source

    On the form proprieties, remove the text value and control source, and in the userform module, enter

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-24-2006
    Location
    Dublin, Ireland
    Posts
    44

    Re: Userform Number Format with Control Source

    great- got it. Thanks JieJenn- I owe you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1