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

Base Email



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 16th 09, 04:10 PM
rfhall50 rfhall50 is offline
Junior Member
 
First recorded activity at Outlookbanter: Jun 2009
Posts: 2
Default Base Email

I have an email that I send often, just with some variable information. I would like to have a macro that creates the base information, then leaves the email open for me to change the variable parts. I tried using the basic vba formats then commenting out the .SEND to hopefully leave the email unsent - No Luck. Any ideas how I can leave it partly filled in, but unsent ?

Thanks. The code I used is shown below.

Bob
Code:
Sub Badge()
    Set OutProg = CreateObject("outlook.application")
    Set OutM = OutProg.CreateItem(OlItemType.olMailItem)
    With OutM
        .Subject = "Just testing."
        .To = "
        .Body = "Here we go"
Rem   .Send
    End With
End Sub
Ads
  #2  
Old June 16th 09, 07:43 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Base Email

If this is running in the Outlook VBA project then use Application and don't
create a new Application object.

Comment out the Send() call and call the Display() method of the new mail
item.

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


"rfhall50" wrote in message
...

I have an email that I send often, just with some variable information.
I would like to have a macro that creates the base information, then
leaves the email open for me to change the variable parts. I tried
using the basic vba formats then commenting out the .SEND to hopefully
leave the email unsent - No Luck. Any ideas how I can leave it partly
filled in, but unsent ?

Thanks. The code I used is shown below.

Bob

Code:
--------------------

Sub Badge()
Set OutProg = CreateObject("outlook.application")
Set OutM = OutProg.CreateItem(OlItemType.olMailItem)
With OutM
.Subject = "Just testing."
.To = "
.Body = "Here we go"
Rem .Send
End With
End Sub

--------------------




--
rfhall50


  #3  
Old June 17th 09, 02:30 AM
rfhall50 rfhall50 is offline
Junior Member
 
First recorded activity at Outlookbanter: Jun 2009
Posts: 2
Default

Ken ...

Thank you for the reply. That is just what I needed.

Bob
 




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
Data Base input JeffinLittleton Outlook - Using Contacts 1 March 26th 09 12:25 AM
reset or revert Outlook autocomplete email address data base [email protected] Outlook - Using Contacts 3 October 24th 07 05:01 AM
Enable access to Contacts d/base when typeing address in an email Peeyush Gupta Outlook - Using Contacts 1 March 1st 07 11:06 AM
Outlook installed base Frank S Outlook - General Queries 3 January 31st 07 06:53 PM
OE 6 Data Base Q nick Outlook Express 1 December 31st 06 03:57 AM


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