Solved

user-defined error with Dim olApp As Outlook.Application

Posted on 2008-10-06
2
1,031 Views
Last Modified: 2008-10-08
I get the above error from line :

Dim OlApp As Outlook.Application

I'm using Acess 2007 so don't see how I navigate to check Microsoft Access 11.0 Object Library ref is ticked.  I've seen in similar answers that you go to  Tools/references  but; this isn't there in access 2007 so how do I do this.

I tried adding an activex control for microsoft office outlook command button control to see if this was the equivalent but; won't let me do this.

Any suggestions would be apreciated.
0
Comment
Question by:ellizz
2 Comments
 

Author Comment

by:ellizz
ID: 22648327
I have now got passed that error by using late binding but; now when run the code get automation error, the specified module could not be found
Does anyone know what this means and how to fix it?
Thanks
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 125 total points
ID: 22655622
1) Access 2007 is Access 2.0, which is on the COM tab

2) You are trying to create an Outlook application instance.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Messagebox for a Web Site Application 4 81
What are the big features of MVC5? 4 95
Trouble with References... 5 62
Mobile apps - web/native or hybrid? 1 63
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question