Error message from this script

G

Guest

When I run this script it works, but I get a warning that stats someone is trying to access outlook how long do you want to allow access 1min erc. ok cancel. How can I avoid this? This is just a test script
TI

Public Sub meeting(
Set myOlApp = CreateObject("Outlook.Application"
Set myItem = myOlApp.CreateItem(olAppointmentItem
myItem.MeetingStatus = olMeetin
myItem.Subject = "Strategy Meeting
myItem.Location = "TBD
myItem.Start = #3/21/1997 1:30:00 PM
myItem.Duration = 9
Set myRequiredAttendee = myItem.Recipients.Add("Name, One"
myRequiredAttendee.Type = olOptiona
Set myOptionalAttendee = myItem.Recipients.Add("Name, Two"
myOptionalAttendee.Type = olRequire
myItem.Displa
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top