how do i record macros in outlook 2002?

  • Thread starter Thread starter Guest
  • Start date Start date
Am Wed, 18 Oct 2006 11:44:02 -0700 schrieb wizardvince:

You can´t do that in any Outlook version.
 
ok, but doesnt Outlook have a macro capability?
If so, how do I get started to build them?
For example, is there a resource that lists the various commands?

my current problem is to write a macro to import a PST file. the file is
always the same, and I want to label the file with the same name every time
so that the user sees that folder name after the import

Any hints would be appreciated
 
The object browser is your friend: Press ALt+F11 to open the VBA environment in Outlook, then press F2. Switch from <All Libraries> to Outlook to browse all Outlook objects and their properties, methods, and events. Select any object or member, then press F1 to see its Help topic. Other Outlook VBA basics are at http://www.outlookcode.com/d/vbabasics.htm

You don't really want to import a .pst file, do you? That's rarely a good idea.

If you want to open a specific .pst file in Outlook, see http://www.outlookcode.com/codedetail.aspx?id=962 for a code sample.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Type this into a code module:

Sub MakeItem()
Set msg = Application.CreateItem(olMailItem)
msg.Display
End Sub

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Am Thu, 19 Oct 2006 15:02:35 GMT schrieb keyworks:

A great resource for all the properties, functions etc. is the object
browser (F2) within your VBA environment. Select there the AddStore function
and press F1 for a sample of how to add a store to your profile.

A lot of samples can be found here: www.outlookcode.com

Additionally this newsgroup is a huge resource where you can find many
samples by using Google.
 
Back
Top