#1   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default Textbox date format.

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!!

--
AOU
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Textbox date format.

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.


AOU wrote:

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!!

--
AOU


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default Textbox date format.

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.

--
AOU


"Dave Peterson" wrote:

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.


AOU wrote:

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!!

--
AOU


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date format textbox George Excel Discussion (Misc queries) 2 September 20th 06 09:09 PM
format textbox to time ASU Excel Discussion (Misc queries) 3 June 7th 06 10:05 PM
TextBox Format grahammal Excel Discussion (Misc queries) 3 March 29th 06 01:35 PM
Format Numeric data in Textbox stickandrock Excel Worksheet Functions 1 October 25th 05 01:44 AM
Format numbers in Textbox stickandrock Excel Discussion (Misc queries) 1 October 4th 05 08:41 PM


All times are GMT +1. The time now is 04:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"