+ Reply to Thread
Results 1 to 4 of 4

Format Textbox on UserForm as Currency

  1. #1
    Registered User
    Join Date
    03-19-2005
    Posts
    2

    Format Textbox on UserForm as Currency

    Hi,

    I am creating a pricing userform which takes a value from 'Sheet1'!A1 and that cell is formatted as currency. On UserForm1, I have dropped in a textbox with a ControlSource of 'Sheet1'!A1. I would like the value to be formatted as currency when it appears in the the userform textbox as it is in the cell on the worksheet. For some reason, there is no way of doing this in the properties window.

    Thanks for help.

    Paul, Southampton

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello paulsouthampton,

    Here is how to do it.

    Amount = TextBox1.Text
    TextBox1.Text = Format(Amount, "Currency")

    Easy when you know how.
    - Leith Ross

  3. #3
    Registered User
    Join Date
    03-19-2005
    Posts
    2
    Leith,

    That's great! Thank you very much.

    Paul, Southampton, UK

  4. #4
    Registered User
    Join Date
    11-04-2015
    Location
    NH
    MS-Off Ver
    2012 With VBA 7.1
    Posts
    13

    Re: Format Textbox on UserForm as Currency

    Quote Originally Posted by Leith Ross View Post
    Hello paulsouthampton,

    Here is how to do it.

    Amount = TextBox1.Text
    TextBox1.Text = Format(Amount, "Currency")

    Easy when you know how.
    - Leith Ross
    I have a formatting issue as well but can't seem to get it resolved. seehttp://www.excelforum.com/excel-prog...urrency-2.html I tried your "Amount=" above but am not sure if it didn't work because I do not know what event to code with that?

+ 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