Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook version of Application.DisplayAlerts

Status
Not open for further replies.

Turpis

Programmer
Apr 16, 2002
151
Is there a Outlook version of the Excel version of the Application.DisplayAlerts = False?



Charles
Walden's Machine, Inc.
Quality Assurance/Office Developer
 
Here is what I am trying to do. I want to have a button on my toolbar that brings up a new email with recipient and subject already filled in and cursor in the bodytext. But when I push the button Outlook gives an alert that says that I must allow access to the contact list. Here is my code.

Sub test()

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olMailItem)

myItem.Recipients.Add ("Marshall Hutton")
myItem.Subject = "RFQ and Lead time"

myItem.Display

End Sub


Charles
Walden's Machine, Inc.
Quality Assurance/Office Developer
 
I have set emails in Outlook that are set up as templates and linked to buttons on my toolbar, all I do is click the button and the pre saved email appears, you don't need to do coding for this.

hope this helps.



Thanks Rob.[yoda]
 
Oh...why do I never look for the simplest solution first? That will work just fine. I suppose that on that button that uses the template that I can have it fire off code that then searches for certain .txt files on the server and have the contents dumped into the body text?



Charles
Walden's Machine, Inc.
Quality Assurance/Office Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top