+ Reply to Thread
Results 1 to 2 of 2

please Help ( number format problem )

  1. #1
    Registered User
    Join Date
    12-14-2020
    Location
    Cairo
    MS-Off Ver
    2019
    Posts
    2

    Question please Help ( number format problem )

    i have many text box in this format ( 5,000.00) first one named (DP1)
    but i want to sum them all to a textbox named ( sumDP )
    but this box read only numbers before ( , ) from the left
    so it's see only 5.00 not 5,000.000
    i want to fixe it please
    ____
    My code is
    ___
    Private Sub DP1_Change()
    For i = 1 To 1
    Sum = Sum + Val(Me("dp" & i))
    Next i
    Me.SumDp.Value = Sum
    Me.SumDp.Value = Format(Me.SumDp.Value, "#,##0.00")
    End Sub

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,395

    Re: please Help ( number format problem )

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. I will do it for you today: https://www.ozgrid.com/forum/index.p...ormat-problem/.)

    So far, you have broken TWO forum rules, so you cannot have read the rules. Please read them now: https://www.excelforum.com/forum-rul...rum-rules.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Number format problem
    By tigorin in forum Excel General
    Replies: 19
    Last Post: 02-11-2013, 05:32 PM
  2. Number Format problem
    By onoank in forum Excel General
    Replies: 3
    Last Post: 04-18-2012, 01:18 PM
  3. NUMBER FORMAT Problem
    By esj001 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-31-2011, 02:14 PM
  4. number format problem
    By kikieb in forum Excel General
    Replies: 1
    Last Post: 07-24-2009, 10:38 AM
  5. Number Format Problem
    By Inexpert in forum Excel General
    Replies: 1
    Last Post: 08-10-2008, 07:58 AM
  6. Number format problem
    By Ali_238 in forum Excel General
    Replies: 3
    Last Post: 11-28-2006, 07:13 AM
  7. Number Format Problem
    By kola5567 in forum Excel General
    Replies: 1
    Last Post: 06-24-2005, 03:05 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