|
TIP: To get help with Outlook programming
objects
To see Help topics on the
different Outlook objects and their properties, methods and events,
use the Object Browser in Outlook 2000 VBA or, for earlier versions,
in Word or Excel VBA (or even in Visual Basic):
- Press Alt+F11 to open the VBA environment.
- Press F2 to display the Object Browser.
- If you're in Word or Excel VBA, choose Tools | References,
and add the Microsoft Outlook library to the project.
- At the top of the Object Browser, switch from viewing <All
Libraries> to Outlook.
The Object Browser should now show you a list of all the Outlook
objects. You can use the box at the top of the Object Browser to
search by name or just browse the list to see what's interesting.
When you want to know more, select an object or property, etc., then
press F1 to see its Help topic. In other words, use the Object
Browser as an index to the Help on the Outlook object model.
In Outlook 98, you may first need to install the Development
Tools component. For Outlook 97, copy Vbaoutl.hlp and
Vbaoutl.cnt from the Valupack folder on your Outlook/Office CD to
the to C:\Program Files\Microsoft Office\Office on your hard drive.
You can run the Vbaoutl.hlp file directly.
To
look up the syntax for Outlook form controls, add a
userform module to your Outlook VBA project. The
MSForms library will automatically be added to your
VBA project references, and you'll be able to look
up MSForms control properties and methods in the
object browser. Be aware that Outlook forms don't
support all properties. There is no support for
ListBox.ColumnHeads, for example.
|