Textbox date format.

G

Guest

I have the following code to date format a textbox.

Private Sub TextBox1_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
TextBox1.Value = Format(TextBox1.Value, "dd-mmm-yy")
End Sub

I keep getting the following message:

Compile error hidden module: userform 3

This code was done on office 2000. I am now using office 2003. Could that be
the problem?
Can anybody help!!
 
D

Dave Peterson

If you haven't changed any of the code, then maybe it's a broken reference.

Open the workbook in xl2003.
Open the VBE, select the project
Tools|References
Look for "MISSING"

If you find any, you'll have to either fix it (point at the new version) or
delete it (if it isn't used).

===
If that doesn't work, you may want to unprotect the project and run some tests
so you can see the actual line that's causing the trouble.
 
G

Guest

Dave
Thanks, that worked.
I Openned the workbook in xl2003.
Open the VBE, select the project
Tools|References
Look for "MISSING"
and selected the ones I needed.
 

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

Similar Threads


Top