PC Review


Reply
Thread Tools Rate Thread

Compile error in hidden module: USAs

 
 
mikester104 via OfficeKB.com
Guest
Posts: n/a
 
      3rd Nov 2006
I have a userform with a ton of code in it. I have these form as a workbook
that the company uses. It works fine on all the computers except four of the.
Everytime they enter in the phone number in the phone number fieild it brings
up COMPILE ERROR IN HIDDEN MODULE: USAs, USAs being the name of the userform.
Here is the code that in that textbox for the phone number.

Private Sub txtPhone_Change()
On Error Resume Next
If Len(txtPhone.Text) = 3 Then
txtPhone.Text = txtPhone.Text & Chr(45)
End If
If Len(txtPhone.Text) = 7 Then
txtPhone.Text = txtPhone.Text & Chr(45)
End If
txtPhone.MaxLength = 12
End Sub

Any help would be much appreciative. Could it be taht tehy do not have
correct refrence libraries that somehow got deleted?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      3rd Nov 2006
After the error, look in tools=>References in the VBE and see if you see a
reference(s) marked as MISSING.

Also, look at what addins they have loaded. Find out what is common to
them and different from others.

--
Regards,
Tom Ogilvy


"mikester104 via OfficeKB.com" wrote:

> I have a userform with a ton of code in it. I have these form as a workbook
> that the company uses. It works fine on all the computers except four of the.
> Everytime they enter in the phone number in the phone number fieild it brings
> up COMPILE ERROR IN HIDDEN MODULE: USAs, USAs being the name of the userform.
> Here is the code that in that textbox for the phone number.
>
> Private Sub txtPhone_Change()
> On Error Resume Next
> If Len(txtPhone.Text) = 3 Then
> txtPhone.Text = txtPhone.Text & Chr(45)
> End If
> If Len(txtPhone.Text) = 7 Then
> txtPhone.Text = txtPhone.Text & Chr(45)
> End If
> txtPhone.MaxLength = 12
> End Sub
>
> Any help would be much appreciative. Could it be taht tehy do not have
> correct refrence libraries that somehow got deleted?
>
> --
> Message posted via OfficeKB.com
> http://www.officekb.com/Uwe/Forums.a...mming/200611/1
>
>

 
Reply With Quote
 
Robin Hammond
Guest
Posts: n/a
 
      3rd Nov 2006
Have a look at Tools, References in the VBA project and see if anything is
marked as missing.

The code error can occur anywhere and is often misleading if there is a
missing library.

--
Robin Hammond
www.enhanceddatasystems.com


"mikester104 via OfficeKB.com" <u28159@uwe> wrote in message
news:68be179eba759@uwe...
>I have a userform with a ton of code in it. I have these form as a workbook
> that the company uses. It works fine on all the computers except four of
> the.
> Everytime they enter in the phone number in the phone number fieild it
> brings
> up COMPILE ERROR IN HIDDEN MODULE: USAs, USAs being the name of the
> userform.
> Here is the code that in that textbox for the phone number.
>
> Private Sub txtPhone_Change()
> On Error Resume Next
> If Len(txtPhone.Text) = 3 Then
> txtPhone.Text = txtPhone.Text & Chr(45)
> End If
> If Len(txtPhone.Text) = 7 Then
> txtPhone.Text = txtPhone.Text & Chr(45)
> End If
> txtPhone.MaxLength = 12
> End Sub
>
> Any help would be much appreciative. Could it be taht tehy do not have
> correct refrence libraries that somehow got deleted?
>
> --
> Message posted via OfficeKB.com
> http://www.officekb.com/Uwe/Forums.a...mming/200611/1
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile Error in Hidden Module: Module 1 Alberto Ast Microsoft Excel Programming 1 26th Jan 2010 08:35 AM
Compile Error in Hidden Module: Module 1 Mim Microsoft Excel Programming 2 23rd Jan 2010 12:22 AM
Compile error in hidden module matthewc81@gmail.com Microsoft Excel Misc 3 12th Feb 2008 03:01 PM
Re: Compile error in hidden module garfield-n-odie [MVP] Microsoft Excel Crashes 0 24th Jan 2007 06:24 PM
Compile Error in Hidden Module: junior@senior.invalid.net Microsoft Excel Setup 2 16th Sep 2005 02:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:10 PM.