A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook security "aprogram is trying to access.."



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 28th 08, 12:15 AM posted to microsoft.public.outlook.program_vba
Steve Burr
external usenet poster
 
Posts: 1
Default Outlook security "aprogram is trying to access.."

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

Ads
  #2  
Old February 28th 08, 02:33 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook security "aprogram is trying to access.."

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.

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


"Steve Burr" wrote in message ...
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

  #3  
Old February 28th 08, 02:34 PM posted to microsoft.public.outlook.program_vba
JP[_3_]
external usenet poster
 
Posts: 201
Default Outlook security "aprogram is trying to access.."

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
wrote:
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


  #4  
Old February 28th 08, 02:58 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook security "aprogram is trying to access.."

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.

--
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


"Steve Burr" wrote in message
...
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


  #5  
Old March 5th 08, 09:22 PM posted to microsoft.public.outlook.program_vba
ND Pard
external usenet poster
 
Posts: 7
Default Outlook security "aprogram is trying to access.."

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/...ad.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.

"Steve Burr" wrote:

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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking "Contacts" folder to query in "Access" Bob Levin Outlook - Using Contacts 0 August 15th 07 06:34 PM
"Your Digital ID cannot be found by an underlying security system" Maria Outlook - General Queries 4 November 15th 06 04:07 PM
"An error occurred in the underlying security system" in Outlook 2 Del Outlook - Installation 0 November 15th 06 11:35 AM
Getting rid of "Internet Security Warning" dialog PetrV Outlook Express 1 April 9th 06 08:23 PM
Is there a way to avoid needing to "allow" outlook security to send email? Mr . . Outlook - Using Forms 1 January 28th 06 02:18 PM


All times are GMT +1. The time now is 03:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.