Yes that would help. What I want is to apply one shadow effect to all the
pictures in a PowerPoint show by either putting a button on the quick access
bar or using a keystroke. If there is code that will automatically do this by
default, that would be great!
> It's not totally clear what you need to do Darmahart.
>
[quoted text clipped - 5 lines]
> > add a particular shadow to an image on PowerPoint slides.
> > Thanks!
This code will copy the format of a selected picture and then apply it to all
pictures. If you don't know how to use vba
see:http://www.pptalchemy.co.uk/powerpoint_hints_and_tips_tutorials.html#vba
'code starts
Sub picformat()
Dim osld As Slide
Dim oshp As Shape
On Error GoTo errhandler
With ActiveWindow.Selection.ShapeRange(1)
If .Type <> msoPicture Then GoTo errhandler
.PickUp
End With
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.Type = msoPicture Then oshp.Apply
Next oshp
Next osld
Exit Sub
errhandler:
MsgBox "Did you select a picture?", vbCritical
End Sub
'code ends

Signature
Amazing PPT Hints, Tips and Tutorials
http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk
> Yes that would help. What I want is to apply one shadow effect to all the
> pictures in a PowerPoint show by either putting a button on the quick access
[quoted text clipped - 10 lines]
> > > add a particular shadow to an image on PowerPoint slides.
> > > Thanks!
Darmahart - 17 Dec 2007 14:35 GMT
Thanks for your help. The macro worked great, but I can't get it to work by
putting it on a template. I have my template that I added the code to and
when I make new PowerPoints from the template I get an error message. How can
I get it to work?
Thanks so much!
> This code will copy the format of a selected picture and then apply it to all
> pictures. If you don't know how to use vba
[quoted text clipped - 36 lines]
> > > > add a particular shadow to an image on PowerPoint slides.
> > > > Thanks!
Steve Rindsberg - 17 Dec 2007 19:35 GMT
> Thanks for your help. The macro worked great, but I can't get it to work by
> putting it on a template. I have my template that I added the code to and
> when I make new PowerPoints from the template I get an error message. How can
> I get it to work?
Start by relieving our suspense; what did the error message say? ;-)
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Darmahart - 17 Dec 2007 21:04 GMT
Opps - my bad. The error was 'The macro cannot be found or has been disabled
because of your security settings.'
fyi - I did change the trust settings to 'Trust access to the VBA project
object model' and saved the template with the macro in the default location.
Thanks!
> > Thanks for your help. The macro worked great, but I can't get it to work by
> > putting it on a template. I have my template that I added the code to and
[quoted text clipped - 8 lines]
> PPTools: www.pptools.com
> ================================================
Steve Rindsberg - 18 Dec 2007 02:05 GMT
Try setting Enable All Macros [dire warning] in the same dialog box as where you set
access to the VBA project. Restart PPT and try again. See if that helps.
> Opps - my bad. The error was 'The macro cannot be found or has been disabled
> because of your security settings.'
[quoted text clipped - 16 lines]
> > PPTools: www.pptools.com
> > ================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Darmahart - 18 Dec 2007 03:57 GMT
Thanks! That worked. :)
> Try setting Enable All Macros [dire warning] in the same dialog box as where you set
> access to the VBA project. Restart PPT and try again. See if that helps.
[quoted text clipped - 25 lines]
> PPTools: www.pptools.com
> ================================================