troubleshooting Question

Excel Form Number Format

Avatar of rutherfordcpa
rutherfordcpaFlag for United States of America asked on
Microsoft Excel
8 Comments1 Solution289 ViewsLast Modified:
I have a form that has 12 text boxes.  Each input is for entering a number and that text box has a ControlSource to a Named cell.

The form is called up while you are not on the sheet with the named cells.

I need the text box to be properly formatted so that, for example, 55555 is actually 55,555.

The following was suggested for formatting:

Private Sub Acq1_Change()
Acq1.Text = Format(Acq1.Text, "#,###")
End Sub

The formatting works, but once the form is closed, the format is not retained when the form is re-opened.

Also, the form freezes Excel after two inputs.  If I move the form to the same page as the Named cells, there are no issues.  If I do not use the suggested format, I can leave the form on the sheet that I need it on and it woks fine.

Suggestions?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros