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!

How to eliminate Window notice!!!

Status
Not open for further replies.

prija

Programmer
Oct 17, 2002
28
YU
I have one problem.
In my VBA code, I created outlook mail using
CreateObject(Outlook.Application) and
CreateItem(olMailItem).
That is OK, but
when I start application I recive message/notice
"A program is trying to access e-mail addresses you have
stored in Outlook.Do you wont to allow this?"...

How to eliminate this.
I don't want to recive this message.

Help me.
 
Have you tried using this line .....

Application.DisplayAlerts = False

It should eliminate all warning messages.

P.S. Don't forget to turn it back on after your code has run, ie "= True".
 
applications.displayalerts =false did not work. Do I need to include references to something?

Steve M
 
Sorry in being a bit late in coming back to you.

I think your problem is within Outlook. I'm not sure what version of Outlook you are running but if you try "Tools/Options/Security" then uncheck the "Warn me when other applications try to send mail as me". This might eliminate the message you are getting but will open you to a security risk.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top