Re: In slide edit, click an image to run a VBA routine
- From: Lars <Lars@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 22 Nov 2008 01:20:01 -0800
Thanks Steve, for your suggestions. Adding a user-defined Menu item was one
approach I tried but, unlike MS Word templates, the new menu item will not
appear if the PowerPoint template is run on another PC. If the toolbar
attached to this template does appear when run on other PCs, that will open a
good path of investigation. I appreciate your help with this project and I
will keep you posted with the results.
--
Lars
"Steve Rindsberg" wrote:
In article <B6757F32-BC96-4473-A35D-C72E868DB20F@xxxxxxxxxxxxx>, Lars wrote:.
I must develop a VBA routine that will open a user form when I click on any
one of several images on an existing slide (not the Slide Master), while in
edit mode. The user form allows me to select another image from a folder and,
when validating by OK, replaces the picture in the image control by the new
one. VBA code attached to an image control runs when in SlideView mode but
not in Edit mode. Can anyone give me some pointers ? Any help will be MOST
appreciated !
To expand on John's suggestion, you'll want to create an add-in that adds a menu
item or toolbar/buttons; when you choose these to invoke your code, it would
work on the current selection to do what you're after.
You'd want it to do some validation first ... make sure that there's only one
shape selected, that it's the correct type of shape and so on.
Another approach would be to write an add-in that implements an event handler:
Make PPT respond to events
http://www.pptfaq.com/FAQ00004.htm
You could respond to the SelectionChanged event; do nothing if the current
selection isn't one of your "target" shapes, or invoke your form and run your
code if it is.
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
- Follow-Ups:
- Re: In slide edit, click an image to run a VBA routine
- From: Steve Rindsberg
- Re: In slide edit, click an image to run a VBA routine
- References:
- In slide edit, click an image to run a VBA routine
- From: Lars
- Re: In slide edit, click an image to run a VBA routine
- From: Steve Rindsberg
- In slide edit, click an image to run a VBA routine
- Prev by Date: RE: In slide edit, click an image to run a VBA routine
- Next by Date: Re: In slide edit, click an image to run a VBA routine
- Previous by thread: Re: In slide edit, click an image to run a VBA routine
- Next by thread: Re: In slide edit, click an image to run a VBA routine
- Index(es):
Relevant Pages
|