+ Reply to Thread
Results 1 to 3 of 3

UserForm - TextBox = Format("yyyy/mm/dd")

  1. #1
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    UserForm - TextBox = Format("yyyy/mm/dd")

    Thread should be: UserForm - TextBox = Format(Me.TextBox3, "$#,##0.00")

    Good day,
    Looking for help on the following:

    I have a UserForm that when Activated it will automatically add in textbox3 the amount from my Active Cell the amount $$$...

    Please Login or Register  to view this content.
    Information in Range("P" & ActiveCell.Row) let’s say is $50,000.00, when I active the UserForm adds the info but not the same format. 50000 will be added to TextBox3.

    Is there a way to add the same “exactly” same format, so if $50,000.00 is inserted in my cell that when I open my Userform it will be the same?

    Thank you
    Last edited by Excelnoub; 10-25-2013 at 02:33 PM. Reason: Wrong Tittle

  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

    Re: UserForm - TextBox = Format("yyyy/mm/dd")

    Hello Excelnou,

    If you want the TextBox to reflect the cell's contents as displayed then use the Text property of the cell. This will return the cell's contents as a string. No need to worry about formatting.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: UserForm - TextBox = Format("yyyy/mm/dd")

    Magic... Thank you Leith

    Works Perf.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 08-13-2013, 06:25 AM
  2. [SOLVED] Format a column as date format "yyyy-mm-dd"
    By Seraph122 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-11-2013, 01:30 AM
  3. Replies: 0
    Last Post: 08-09-2012, 04:31 PM
  4. convert string to date format of "d-mmm-yyyy"
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-12-2011, 09:48 AM
  5. Format Text Box as "dd/mm/yyyy"
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2009, 01:15 PM

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