PC Review


Reply
Thread Tools Rate Thread

Access 2007 calls to Outlook 2007, Won't 2007 take VBA calls?

 
 
James
Guest
Posts: n/a
 
      5th Mar 2010
I have a VBA module that calls an Outlook Object, When run with MS
Office 2007 I get an undefined variable error. Is MS 2007 deaf to
VBA? The error occurs in the first line of the following code:

Option Compare Database
Option Explicit

' InitOutlook sets up ola and nsp.
Private ola As Outlook.Application ----< Here with ola
Private nsp As Outlook.NameSpace

Can't get any response from MS
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      7th Mar 2010
Is your database in a Trusted Location? Unless it is, Access will not run
VBA.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"James" <(E-Mail Removed)> wrote in message
news:304a15ce-2137-4472-bd00-(E-Mail Removed)...
>I have a VBA module that calls an Outlook Object, When run with MS
> Office 2007 I get an undefined variable error. Is MS 2007 deaf to
> VBA? The error occurs in the first line of the following code:
>
> Option Compare Database
> Option Explicit
>
> ' InitOutlook sets up ola and nsp.
> Private ola As Outlook.Application ----< Here with ola
> Private nsp As Outlook.NameSpace
>
> Can't get any response from MS



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access 2007 ends unexpectetly - Calls VB6 DLL chris Microsoft Access VBA Modules 6 9th Feb 2010 06:41 AM
Outlook 2007 Rule for Office Communicator 2007 Missed Calls RNegus Microsoft Outlook Discussion 2 14th Apr 2009 09:55 PM
VOIP calls through outlook 2003 or 2007 Vijay Microsoft Outlook Discussion 0 10th Jul 2008 08:01 AM
How do you schedule phone calls and meetings in Outlook 2007 w/ BC CallieLilly1 Microsoft Outlook BCM 1 30th Apr 2008 05:49 AM
outlook bcm 2007 making calls and storing history newsgroups.microsoft.com Microsoft Outlook BCM 0 29th Oct 2007 03:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:47 PM.