Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / January 2006

Tip: Looking for answers? Try searching our database.

Problems accessing Outlook from Access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
amiga1200 - 19 Jan 2006 00:03 GMT
I have the following code

   Dim ObjOutlook As Outlook.Application
   Dim ObjCtl As Office.CommandBarControl
   Dim ObjPop As Office.CommandBarPopup
   Dim ObjCB As Office.CommandBar
   Dim ObjItem As Object
   
   Set ObjOutlook = CreateObject("Outlook.Application")
   Set ObjCB = ObjOutlook.ActiveInspector.CommandBars("Standard")
   Set ObjPop = myMenu.Controls("Insert")
   Set ObjPop = ObjPop.Controls("Signature")
   ObjPop.Reset
   Set ObjCtl = ObjPop.Controls.Item("Deliveries")
   ObjCtl.Execute

But I keep getting errors in the line starting Set ObjCB I get the following
error.

Run-time error '91':
Object variable or With block variable not set

Help please
Amiga1200
Alex Dybenko - 19 Jan 2006 05:29 GMT
Hi
I would suggest you to better ask in Outlook group

Signature

Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

>I have the following code
>
[quoted text clipped - 21 lines]
> Help please
> Amiga1200
 
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.