• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 33. Using VBA in Outlook 2003 > Creating and Using Userforms in VBA

Creating and Using Userforms in VBA

VBA code might sometimes not be enough to perform the operations you need within Outlook. If you need to gather information before running your code, or just want to use Outlook to perform advanced operations with email messages or other Outlook items, you can create userforms directly in VBA. These forms are very different from custom Outlook forms. Userforms are very similar to Visual Basic forms. They can have code that runs when the form loads or in response to an event such as a button click or data entered in the form.

Add a new userform to your project by right-clicking anywhere in the Project Explorer and selecting Insert, UserForm. A new userform is inserted in your project and the control toolbox is displayed, shown in Figure 33.7.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint