O2K vbe error message "Can't find project or library"?

S

StargateFan

[Begging the group's indulgence. It's come to my attention that
soemthing in my clock isn't registering right. I'm showing everything
okay but email responses show me that my replies have screwed times
even though my original versions showing up okay. Before I
wipe/reinstall, just need to post this urgent message so that when I'm
web ready again, hopefully someone will know what this other problem
here below is and has a recommendation <g>.)]

I'm have trouble with a script in my O2K. I'm getting this error
message re a script:

---------------------------
Microsoft Visual Basic
---------------------------
Compile error:

Can't find project or library
---------------------------
OK Help
---------------------------

The VBE opens and has this script highlight in yellow with "strMsg ="
highlighted in grey.


===========================
Private Sub Application_Startup()
strMsg = "Do you want to run the macro to expand all the
folders... ?"
If MsgBox(strMsg, vbYesNo + vbQuestion, "Expand all?") = vbYes
Then
ExpandAllFolders
End If
End Sub
===========================

This script has worked fine before in conjunction with the others I
have in the vbe. I use O2K here at home.

Anyone know what the problem might be?

Thanks! :eek:D
 
S

StargateFan

What do you see if you click Tools/References?

Hi, thanks. I have these items ticked under TOOLS > REFENCES in the
vbe:

- Visual Basic For Applications
- Microsoft Outlook 9.0 Object Library
- OLE Automation
- MISSING: Microsoft Office 12.0 Object Library
- Windows Script Host Object Model
- Microsoft Scripting Runtime

And I have a whole host of other items, not ticked.

Anything not happening here that should be?
 
M

Michael Bauer [MVP - Outlook]

The list tells it: For any reason it's missing the Microsoft Office 12.0
Object Library. See if unchecking it solves the issue; the code you have
provided doesn't need the library.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Mon, 19 Oct 2009 06:15:10 -0700 (PDT) schrieb StargateFan:
 

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