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

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
================================================



.



Relevant Pages

  • Re: In slide edit, click an image to run a VBA routine
    ... In addition to what Steve said. ... Keep the event handling code to the minimum. ... replaces the picture in the image control by the new ... work on the current selection to do what you're after. ...
    (microsoft.public.powerpoint)
  • RE: convert lookup column from access to sql server express
    ... You have a code that represents two people (Matt & Steve). ... When you make the selection where is that selection stored and what are you ... lookup table with possible values and for each account ...
    (microsoft.public.access.forms)
  • Re: Unable to print Emails in Outlook Express
    ... I do not have regsvr on my system, ... a window opens for a printer selection and a print ... If you select format memo (to select the printing of the ... "Steve Cochran" schreef: ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Login popup when accessing file on Web server
    ... "Steve Wonderful" wrote in ... Web before loading the template. ... This is an authentication issue. ... If the security settings are ...
    (microsoft.public.inetserver.asp.general)
  • Re: Ready to abandon "Pages"
    ... so the point of the template is that you should ... selection is inviting you to do. ... There's a lesson for interface designers here. ... (or "filler selection") ...
    (comp.sys.mac.apps)