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 / Outlook / Programming VBA / March 2008

Tip: Looking for answers? Try searching our database.

Outlook security "aprogram is trying to access.."

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Burr - 28 Feb 2008 00:15 GMT
Hi,

I am using word vba to automate sending an email with a hyperlink in the
body. When I added the coding to include the signature the security setting
is triggered. Code is below. Is there a workaround or solution I am missing?

Kind regard and many thanks

PS. I apologize to anyone who replied to the post in the general section. My
error.

Extract of code
'Create a new mailitem
Set oItem = oOutlookApp.CreateItem(olMailItem)
With oItem
   oItem.To = ""
   oItem.Subject = sDsp
   oItem.Display
   oItem.HTMLBody = "<a href='" & sHpl & "'>" & sDsp & "</a>" &
oItem.HTMLBody & vbCrLf
End With
Sue Mosher [MVP-Outlook] - 28 Feb 2008 02:33 GMT
See http://www.outlookcode.com/article.aspx?ID=52 for your options with regard to the "object model guard" security in Outlook 2000 SP2 and later versions.

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

> Hi,
>
[quoted text clipped - 17 lines]
> oItem.HTMLBody & vbCrLf
> End With
JP - 28 Feb 2008 14:34 GMT
You mentioned the code that inserts the signature is triggering the
security prompt, could you post that portion of the code?

Thx,
JP

On Feb 27, 7:15 pm, Steve Burr <SteveB...@discussions.microsoft.com>
wrote:
> Hi,
>
[quoted text clipped - 17 lines]
> oItem.HTMLBody & vbCrLf
> End With
Ken Slovak - [MVP - Outlook] - 28 Feb 2008 14:58 GMT
That's the Outlook security that's been around since Outlook 2000 SP2. See
http://www.outlookcode.com/article.aspx?id=52 for your options.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi,
>
[quoted text clipped - 20 lines]
> oItem.HTMLBody & vbCrLf
> End With
ND Pard - 05 Mar 2008 21:22 GMT
I had problems with MS Access VB when I tried to send an email through Outlook.

Fortunately, we have a SMTP server and I found a GREAT workaround at:

 http://www.access-programmers.co.uk/forums/showthread.php?t=97854

I was able to copy and use (modify) the code posted by BCullenward.

Now I no longer receive Outlook Security Dialogue alerts and it works super
fast too.

Hope that helps a little.  Good Luck.

> Hi,
>
[quoted text clipped - 17 lines]
> oItem.HTMLBody & vbCrLf
> End With
 
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.