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 / Word / Programming / December 2006

Tip: Looking for answers? Try searching our database.

My Outlook Calendar

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MikeG - 21 Dec 2006 02:52 GMT
I'm having trouble with the My Outlook Calendar code available at Slipstick.  
When Word 2003 attempts to run the macro, I get a run-time error:

Automation Error
The specified module could not be found

Clicking the Debug button shows the bad call to be MY.Show in module Cal.  
This seems to be a setup problem specific to my laptop - everything works
fine on another machine here in the office.

I recently decided that I wanted to learn VB and have installed VB2005
Express. I remember reading that some of the changes in VB2005 can break old
code.  Have I found an example here?  Of course, as a rank beginner, I don't
know where to begin...

Any help would be appreciated,
MikeG
MikeG - 21 Dec 2006 03:38 GMT
OK, learned how to step through code!! :)

We do move into form MY, Public Sub userform_initailize - start intializing
variables - and then the error appears at line 939

Set objOutlookNS = objOutlookApp.GetNamespace("MAPI")

Plugging away,
MikeG
MikeG - 21 Dec 2006 04:16 GMT
So after Googling GetNamespace to see what came up, I tried the alternate
VBScript syntax of GetNamespace...  All seems well now!

If anyone that reads this can tell me _why_ my quasi-random flailings worked
though - it would be appreciated.

How about I'm missing a VB runtime library somewhere?

MG

Rate this thread:






 
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.