+ Reply to Thread
Results 1 to 3 of 3

Inserting data into a cell with a userform in the same format

  1. #1
    Registered User
    Join Date
    10-04-2009
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    77

    Inserting data into a cell with a userform in the same format

    Afternoon,

    I have a userform with 4 text boxes. One of the boxes you have to enter in an amount. i.e. £25.52

    This value gets put into cell E17 in my spreadsheet.

    When I click the button and it puts it in, it puts it in the cell as "£25.52" with left alignment and does not apply it as the accounting style, as set to that cell. The same happens if I just type "25.52" instead.

    I also have a formula applied so that if E18 is "Yes", E19 will display "£0.00" otherwise, E19 should display the value of E17. And then column E has a total at the bottom of the values in Column E. Even when "£25.52" or "25.52" is entered in, it comes up in cell E19 as 25.52 (not with accounting style) but it doesn't add up in the sum at the bottom of the column.

    Can anyone tell me how to fix this please?

    Many thanks!

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Inserting data into a cell with a userform in the same format

    Hi

    It depends how you are transferring the data. to retain the original formatting you can use something like

    Please Login or Register  to view this content.
    Regards

    Jeff

  3. #3
    Registered User
    Join Date
    10-04-2009
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Inserting data into a cell with a userform in the same format

    I had to put ".value" on the end of the text box name in my coding doh! All fixed though. Thanks anyway

+ 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