RE: How do I add an Gallery item to the quick access toolbar in PP

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



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!

"John Wilson" wrote:

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
--
Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk


"Darmahart" wrote:

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!


"John Wilson" wrote:

It's not totally clear what you need to do Darmahart.

Would vba that takes the format of one picture and applies it to all the
other pictures help?
--
Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk


"Darmahart" wrote:

I would like to add an item from a Gallery(not the gallery itself) to my
quick access toolbar or alternatively know the VBA code to take a picture and
add a particular shadow to an image on PowerPoint slides.
Thanks!
.



Relevant Pages

  • Re: Defining the top and bottom measurement of an inserted image.
    ... For another template however, it is not a strange idea to set the wrapformat ... Name the macro InsertPicture will override the default Word command. ... One of the layout consistencies we have is for most pictures to ... settings are reset to before the template was opened. ...
    (microsoft.public.word.vba.general)
  • Re: Defining the top and bottom measurement of an inserted image.
    ... For another template however, it is not a strange idea to set the wrapformat ... Name the macro InsertPicture will override the default Word command. ... One of the layout consistencies we have is for most pictures to ... settings are reset to before the template was opened. ...
    (microsoft.public.word.vba.general)
  • Re: Replicating sentences
    ... I am operating Word 2002. ... I have generated a template that requires ... the user to input text adjacent to various thumbnail photographs however I ... Or are the pictures always static? ...
    (microsoft.public.word.docmanagement)
  • Re: Templates for a yearbook
    ... it will make your life ... | the school pictures sold us on digital photos. ... Is there already a template made for rows ...
    (microsoft.public.publisher)
  • RE: creating a new template
    ... how do I actually get the formatting of that slide though to appear ... in the 'Slide Design' menu when I click onto New, ... do't have to choose File New Template etc. but they can't remember how they ... "John Wilson" wrote: ...
    (microsoft.public.powerpoint)