Userform Text Box Formatting

A

amit

Hi - I have a userform on which the Save & Close button takes the total
number and stores this back into an already open form. i hav no issues with
all this...however...i normally apply formatting on text boxes in the Change
sub.....however becos in thsi case the text box value is changed from another
userform....my change sub doesnt seem to work i also have a sum sub which i
want to run when the number from the other form is placed into this text box.

Private Sub A_Change()
Call Sum_Values
A.Value = Format(A.Value, "#,##0")
End Sub

any help would be much appreciated.
 
N

Nigel

Why not just call the change sub from your update routine, you will need to
make an explicit reference to the sheet where the control is located.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top