Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quick list
Message
 
To
06/08/2002 06:52:04
Debbie Galura
Deltek Systems Philippines
Makati, Philippines
General information
Forum:
Microsoft Office
Category:
Outlook
Title:
Miscellaneous
Thread ID:
00686112
Message ID:
00686576
Views:
43
>What I mean is, is there a way that I can create a button that automatically loads a certain email address whenever I'd make an email message?

Make this macro in outlook. You can leave off the subject and body lines if you like.

Sub MakeMessage()
Dim myOLApp As New Outlook.Application
Dim myOLItem As Outlook.MailItem
Set myOLItem = myOLApp.CreateItem(olMailItem)
myOLItem.To = "Whoever"
myOLItem.Subject = "Subject line"
myOLItem.Body = "This is a sample message."
myOLItem.Display
End Sub

Close the VB Editor.

Then, Right click on the button bar and select Customize.
Then Commands tab.
Select Macros
You should see Project1.MakeMessage
Click and drag it to the button bar.
Leave the Customize window open.
Right click on the button in the button bar.
Change the name field or icon to anything you want.
___________________________
Kenneth Wonderley
http://www.wonderley.com


...the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, gentleness and self-control.
Galatians 5:22 & 23
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform