Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4613446
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:33:05+00:00 2026-05-22T01:33:05+00:00

I have a form with a number of text boxes for user input (this

  • 0

I have a form with a number of text boxes for user input (this is in a User Form not on the spreadsheet). I have a few boxes that are related to currency and I need them to show the comma and decimal point as the user enters their criteria into the box. So far I have found a bunch of the same formulas online but when I input my number into the box it goes with 4.00 (if i hit 4 first) and all i can change after that is the second 0. Here is something similar I see online:

textbox1 = format(textbox1, "$#,##0.00")

Also seen some with cDbl

No matter what I try it won’t let me enter anything more than the first number I enter. I need help. Thanks!

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:33:05+00:00Added an answer on May 22, 2026 at 1:33 am

    Formatting as the user types in data gets very tricky. May be better to format after the entry is complete.
    Entry can also be validated and old value restored if entry deemed invalid

    Dim TextBox1oldValue As String
    
    Private Sub TextBox1_AfterUpdate()
        If IsNumeric(TextBox1) Then
            TextBox1 = Format(TextBox1, "$#,##0.00")
        Else
            TextBox1 = TextBox1oldValue
        End If
    End Sub
    
    Private Sub TextBox1_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
        If IsNumeric(TextBox1) Then
            TextBox1oldValue = Format(TextBox1, "$#,##0.00")
        End If
    End Sub
    
    Private Sub UserForm_Initialize()
        TextBox1oldValue = "$0.00"
        TextBox1 = "$0.00"
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form with a variable number of text boxes that contain an
I have a form that has 3 text boxes for 3 input values, along
I have a couple of text boxes that accept numeric values. When a user
I have a form with a table that has two input boxes, a select
I have a form in asp with two text boxes. If user enters a
I have n number of text fields named in the form Question...... How can
I have a form with phone number field, i need to validate it with
I have a form that takes in a number of fields about a camera's
I have a form with a stage that has a dynamic number of groups
I have a form that has 8 columns and a variable number of rows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.