+ Reply to Thread
Results 1 to 8 of 8

UserForm Knowledge needed to make TextBoxes in both places as numbers

  1. #1
    Forum Contributor
    Join Date
    12-20-2011
    Location
    United States, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    295

    UserForm Knowledge needed to make TextBoxes in both places as numbers

    Hello again - more userform knowledges needed here. Please excuse my ignorance as I am very new to user forms.

    Please see attached workbook. SHEET1 contains the macro to call the userform up and the form works just about the way I need it to other than (2) things which are related.

    On the userform, I would like for the user to insert numbers within the sqaure footage textboxes. As the user tabs over or switches to another textbox, I would like for the format to read "#,###" with the comma seperator. Currently, if the user enters "####" , then "####" is what shows in the text box. I would like to see the comma seperator.

    And also, when the data is inserted into the worksheet SHEET1, if it is entered as "####" then it views it as a text format. I need this format to be numbers (with comma seperator).

    I am assuming that is an easy change, I just dont know where to do it. Any help would be greatly appreciated.



    Side request: Is there an easy looping way to clean this up?
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by clemsoncooz; 01-20-2012 at 11:31 AM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: UserForm Knowledge needed to make TextBoxes in both places as numbers

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Last edited by snb; 01-20-2012 at 11:20 AM.



  3. #3
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: UserForm Knowledge needed to make TextBoxes in both places as numbers

    Or a loop:
    Please Login or Register  to view this content.
    Good luck.

  4. #4
    Forum Contributor
    Join Date
    12-20-2011
    Location
    United States, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    295

    Re: UserForm Knowledge needed to make TextBoxes in both places as numbers

    Quote Originally Posted by snb View Post
    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Thank you very much. Both work just perfect in regards to my side note request.....little note: not that it matters, but your second Transpose has (2) 's' ....just letting those know who decide if they want to copy and paste.

    Any ideas on the main request?

  5. #5
    Forum Contributor
    Join Date
    12-20-2011
    Location
    United States, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    295

    Re: UserForm Knowledge needed to make TextBoxes in both places as numbers

    Quote Originally Posted by OnErrorGoto0 View Post
    Or a loop:
    Please Login or Register  to view this content.
    Thank you. Works perfect on the side note request. Any ideas on the main request?

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: UserForm Knowledge needed to make TextBoxes in both places as numbers

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  7. #7
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: UserForm Knowledge needed to make TextBoxes in both places as numbers

    Please Login or Register  to view this content.
    repeat for the others.

  8. #8
    Forum Contributor
    Join Date
    12-20-2011
    Location
    United States, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    295

    Re: UserForm Knowledge needed to make TextBoxes in both places as numbers

    Thanks to all!

+ 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