In Visual basic I insert a class module
I type in this line"
Public WithEvents appevent As Application
In the Class1 module window, I click to select appevent in the Object list
APPEVENT is not shown only class and general appear
only Initialize and terminate procedures are listed in the procedure list
All I want to do is have a user form automatically open every time a
PowerPoint presentation is opened
Thank You
Austin Myers - 02 Sep 2006 18:50 GMT
Assuming you make this an add in (instead of a macro) you can use the
"Auto-Run" feature. Yes?
Austin Myers
MS PowerPoint MVP Team
Provider of PFCMedia http://www.pfcmedia.com
> In Visual basic I insert a class module
> I type in this line"
[quoted text clipped - 7 lines]
>
> Thank You
Steve Rindsberg - 02 Sep 2006 19:36 GMT
> In Visual basic I insert a class module
> I type in this line"
[quoted text clipped - 4 lines]
> All I want to do is have a user form automatically open every time a
> PowerPoint presentation is opened
One approach is to create an addin that includes an event handler that traps
the New Presentation event and displays your form as a VBA form rather than a
VB one.
Make PPT respond to events
http://www.pptfaq.com/FAQ00004.htm
Creating and Installing Add-ins, Toolbars, Buttons
http://www.pptfaq.com/index.html#name_Creating_and_Installing_Add-ins-_Toolbars
-_Buttons_
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================