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

Security Warning about stored email



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old October 21st 08, 02:37 PM posted to microsoft.public.outlook.program_vba
DStrong
external usenet poster
 
Posts: 18
Default Security Warning about stored email

OK, Ken, I tried what you said below and have included my code as I get a new
error message now. It says "variable or block with not set" I feel like it
says that I have not defined the Application line? Am I correct?

my code:
Sub ExGroup_Reply_PW()
'## adds group reply info only
Dim objMail As Outlook.MailItem

Set objMail = Application.ActiveInspector.CurrentItem
With objMail
.ReplyRecipients.Add "
End With
End Sub


As for the save portion, that is all greek to me. I am not sure that I would
be able to deploy something like that in this work environment. I am looking
for a simple solution that does not include using sendkeys or something too
complex. It seems that it should be a more simple solution. My sendkeys code
was one line, it works, it just turns off NUM Lock and CAPS lock when ever
that code is run.

"Ken Slovak - [MVP - Outlook]" wrote:

The Application part of my advice is easy to follow, just use Application
where you now use myOlApp and get rid of that CreateObject() line.

For the SaveAs, I'd probably construct my own dialog for location, possibly
using the ComDlg controls if those were installed. Otherwise I'd construct a
dialog from scratch or use the Win32 API calls to open the common dialog
Save dialog. VBAccelerator.com has samples of directly using the Win32 API
calls.

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


"DStrong" wrote in message
...
Sorry, I am new to VBA in outlook. I have only been doing these for the
past
two days now. I am experienced in VBA in excel and can do nearly anything
in
that. So the reason why I am doing things this way is that they are the
only
way I know how.

To also answer the Saveas question, we need open the saveas dialog box
that
prompts the user for the location that they want to save the file and I
want
to have the type defualt to and outlook .msg file type for archive
purposes.
Many users use the defualt .rtf format and we are trying to be consistant.

I am searching the web for help and this is where I am at as of now.
Thanks
for your advice, though not sure how to apply it.



 




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
Outlook Security Warning dkschoonover Outlook and VBA 12 August 23rd 08 12:21 AM
Security Warning Loominator Outlook Express 2 December 4th 07 12:12 AM
Security warning Christian Goeller Outlook - General Queries 6 March 22nd 07 03:13 PM
How to disable security warning? Richard Lewis Haggard Outlook - General Queries 2 April 4th 06 04:07 PM
Internet Security Warning.... Jeff Outlook Express 3 March 29th 06 08:13 PM


All times are GMT +1. The time now is 03:40 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.