View Single Post
  #4  
Old January 9th 07, 02:58 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Launching an UserForm from a cutomised form

If your user form is named MyForm, this code goes in ThisOutlookSession in VBA:

Public Sub ShowMyForm()
MyForm.Show
End Sub

And this code would be the event handler for a command button on your custom form named CommandButton1:

Sub CommandButton1_Click()
Application.ShowMyForm
End Sub

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Tof" wrote in message .fr...
Hello Sue Mosher [MVP-Outlook],

Thank you very much for your so quick answer ! (8 minutes : faster than santaClaus
! )

Could you give me a little bit more precision lease. I'm beginning in Outlook
programing...and it's a little hard for me.

Perhaps could you gvie me just some links to find some documentation about
that procedure (I guess that you are very busy and don't have always time
to explain all to every beginners that is coming here )

Sincerly,
Tof


Ads