Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Setup / June 2007

Tip: Looking for answers? Try searching our database.

Microsoft Visual Basic errors displaid when opening Microsoft Word 97 & Excel (7

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JJ mac - 06 Jun 2007 19:07 GMT
Operating System    Windows Vista.

When I open Microsoft Word 97 I get a Microsoft Visual Basic error message "
Compile error in hidden module: Autoexec"  If I click OK the program appears
to function properly.

When I click on Excel 97 shortcut three Windows open namely:
Microsoft Visual Basic - PDF Writer.xla (running)

PDF Writer.xla-AutoExec (Code)

PDF Writer.xla- Registration Database (Code)   with a Microsoft Visual Basic
error message "compile error: can't find project or library"
When I click on close I get message "This command will stop the debugger"
Click on OK and Excel opens and appears to function normally.

Both of these programs worked perfectly under XPPro and were working  on
Vista
before these error messages started to appear.

Advice as to how to correct this fault associated with the Office Programs
would be appreciated.

Thank you
Dave Peterson - 06 Jun 2007 19:27 GMT
I have no idea about the code that pdmaker.xla is, but...

Take a look here:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q307410
OFF: "Compile Error in Hidden Module" Error Message When You Start
    Word or Excel

It points at PDFMaker.xla as being the culprit.

> Operating System    Windows Vista.
>
[quoted text clipped - 20 lines]
>
> Thank you

Signature

Dave Peterson

JJ mac - 07 Jun 2007 15:34 GMT
Dave
I thought I sent you a reply to your helpful post yesterday but it obviously
got lost somewhere.
When installation of the latest updates in Adrobe reader 8 failed to correct
the errors I removed PDFWriter.xla from the Microsoft Office Xstart folder
but that did not work either.   However,you have pointed me in the right
direction & I have not given up yet. I feel sure that there is an answer to
the problem somewhere.

Many thanks for your help

Regards
JJ Mac

>I have no idea about the code that pdmaker.xla is, but...
>
[quoted text clipped - 34 lines]
>>
>> Thank you
Dave Peterson - 07 Jun 2007 20:19 GMT
Sometimes that folder can be hard to find.

Maybe you can use an old DOS command.

close excel
shell to DOS
windows start button|Run
cmd  (windows 2k/xp)
command (windows 98)

At the DOS prompt:
C:      (to get to the C: drive)
cd\     (to get to the root directory)

dir pdf*.xl* /s

the /s means to search through subdirectories.

Make a note of the location(s) you find.

> Dave
> I thought I sent you a reply to your helpful post yesterday but it obviously
[quoted text clipped - 52 lines]
> >
> > Dave Peterson

Signature

Dave Peterson

jj mac - 13 Jun 2007 17:40 GMT
Hi Dave
I have returned after being away for a few days. I have recently switched
from XPPro to Vista and am still struggling to find my way around the latter.
I found the files OK.  I was trying out this and that and am not sure what
exactly I did but when I returned to Word and Excel I found that the
Microsoft Visual Basic compile errors had gone.   Normality has now been
resumed except for a new unrelated error which has appeared in Excel after I
had made some changes in a Macro.  When I invoke the Macro I get an error
message “Error accessing the system registry” If I click OK to acknowledge
the message and then reinvoke  the Macro  it runs without any apparent error.
I can live with that one.  Many thanks for your help.

Kind Regards
JJ Mac

Signature

JJ MacA

> Sometimes that folder can be hard to find.
>
[quoted text clipped - 72 lines]
> > >
> > > Dave Peterson
Dave Peterson - 13 Jun 2007 17:56 GMT
I don't have a guess why you get that new warning.

If it's from a macro that you wrote, maybe you can share the portion of code
that causes the error.

If it's from a macro that someone else wrote, you may want to show it to him/her
so that they can see what Vista does to it (just a guess that Vista may be the
cause).

> Hi Dave
> I have returned after being away for a few days. I have recently switched
[quoted text clipped - 94 lines]
> >
> > Dave Peterson

Signature

Dave Peterson

jj mac - 14 Jun 2007 15:59 GMT
I did indeed write the Macro. On checking I found the first line of the Macro
viz "Sub Macro7 ()" was highlighted in yellow. Not seeing any apparant fault
with this line I simply deleted it and retyped it back in again exactly as it
was. That solved the problem.  
I have experienced this sort of thing before, albiet more often in the body
of the code, where retyping a portion of code is required to correct a
problem.
Signature

JJ MacA

> I don't have a guess why you get that new warning.
>
[quoted text clipped - 103 lines]
> > >
> > > Dave Peterson
Dave Peterson - 14 Jun 2007 18:54 GMT
I've seen people copy invisible/invalid characters into the code window.

Maybe you did that????

Deleting the line and retyping would fix that kind of problem.

> I did indeed write the Macro. On checking I found the first line of the Macro
> viz "Sub Macro7 ()" was highlighted in yellow. Not seeing any apparant fault
[quoted text clipped - 117 lines]
> >
> > Dave Peterson

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.