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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook 2000 Macros and Rules Explanations needed.

Status
Not open for further replies.

toony

IS-IT--Management
May 23, 2001
4
AE
Good afternoon,

I was trying today to make that when i send an email it prints the email automatically. But apperently in the rules of Outlook 2000 you can make that when you receive an Email, you can print it but in the rules for sent email, it doesn't give you the options to print when sent.

So i thought about Macros, but i don't really know anything about Macros, and would like to see if someone here made a macros for that already, or have some scripting lines i could start on.

Thank you to answer me, thats the problem with computers we never know everything :)
 
What you suggest is quite simple to do.

In Outlook 2000, go to the Visual Basic Editor (Tools->Macro->Visual Basic Editor).
On the left, where you see "Project1", open the Microsoft Outlook folder, and double-click on "ThisOutlookSession". These are macros that can run durning your Outlook session.
Now, above the text window on the right, you will see two drop-down boxes at the top. These specify what type of macro you're writing (the left one: General or Application), and when the macro should run. Select "Application" and "ItemSend". You should see "Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)" appear in the text below. This is, of course, macro code that will run when the application sends an item.
Between that line and the "End Sub", type "Item.PrintOut". That tells the Outlook application to print out the item whenever an item is sent.
Save your work (File->Save), close the Visual Basic Editor, and test it (send a new message).

Now, as a side point, I'm not encouraging the practice of regularly printing-out anything, particularly email. It's much easier to manage email with a computer than with a file cabinet. But it is worth understanding what VBA macros are capable of doing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top