In slide edit, click an image to run a VBA routine

L

Lars

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 !
 
S

Shyam Pillai

In addition to what Steve said. If you are using the event handling approach
then

- Keep the event handling code to the minimum.
- Turn the event handling off while you are processing the event and reset
it back when done.
- You may run into an issue where the shape will move around as you move
your cursor after the macro is done running. To work around this either
unselect the shape programmatically or switch views and restore back.

Regards,
Shyam Pillai

Animation Carbon - http://www.animationcarbon.com
 
L

Lars

Many thanks, John, for your reply. You gave me some good links here and I
will study these this weekend and keep you posted.
 
L

Lars

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.
 
L

Lars

Thanks, Shyam, for your suggestions. With all this help that I have received
so far, I will do all I can to complete this project ! I will keep you posted.

Thanks again,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top