J
Joe
Is there any good reference material on how to use the object oriented
features of VBA Office Automation in PowerPoint? I use the object brower,
but that just tells me what object or method is a parent or child of another.
What I need is a reference that tells me about each and every object,
parent, child, method, property and so on, what they do, how they are used,
etc. I mean, if Microsoft is going to spend money on developing the thing,
shouldn't it be in their benefit to tell other people about it?
For example, I needed to left justify some text that seemed to be centered.
How was I suposed to know that it needed to be in the ParagraghFormat object?
I did some googling and other seaching, took a wild guess, and hacked it
until I got it to work. The working method is below.
It seems to be soooooo backwards to have to do all that hacking just to get
some text to justify. I still don't know how to add additional "shapes" into
a slide. I can add shapes, like text boxes, when using the gui in
Powerpoint, but how to do the same in VBA?
Also, what are all those different ppLayout thingies? I mean like
ppLayoutBlank, ppLayoutChart, ppLayoutText, and so on. What do these things
look like? How do I use them? It would really be nice to have some decent
documentation on the product.
Thanks
Joe
thisSlide = .Slides.Count + 1
.Slides.Add thisSlide, ppLayoutText 'bulleted list
.Slides(thisSlide).Shapes(1).TextFrame.TextRange.Text = "Internal
Program Review"
.Slides(thisSlide).SlideShowTransition.EntryEffect = ppEffectFade
With .Slides(thisSlide).Shapes(2).TextFrame.TextRange
.Text = ReadSlide01
.ParagraphFormat.Alignment = ppAlignLeft
With .Font
.Name = "Arial"
.Size = 10
End With
End With
..Slides(thisSlide).Shapes(1).TextFrame.TextRange.Characters.Font.Size = 32
features of VBA Office Automation in PowerPoint? I use the object brower,
but that just tells me what object or method is a parent or child of another.
What I need is a reference that tells me about each and every object,
parent, child, method, property and so on, what they do, how they are used,
etc. I mean, if Microsoft is going to spend money on developing the thing,
shouldn't it be in their benefit to tell other people about it?
For example, I needed to left justify some text that seemed to be centered.
How was I suposed to know that it needed to be in the ParagraghFormat object?
I did some googling and other seaching, took a wild guess, and hacked it
until I got it to work. The working method is below.
It seems to be soooooo backwards to have to do all that hacking just to get
some text to justify. I still don't know how to add additional "shapes" into
a slide. I can add shapes, like text boxes, when using the gui in
Powerpoint, but how to do the same in VBA?
Also, what are all those different ppLayout thingies? I mean like
ppLayoutBlank, ppLayoutChart, ppLayoutText, and so on. What do these things
look like? How do I use them? It would really be nice to have some decent
documentation on the product.
Thanks
Joe
thisSlide = .Slides.Count + 1
.Slides.Add thisSlide, ppLayoutText 'bulleted list
.Slides(thisSlide).Shapes(1).TextFrame.TextRange.Text = "Internal
Program Review"
.Slides(thisSlide).SlideShowTransition.EntryEffect = ppEffectFade
With .Slides(thisSlide).Shapes(2).TextFrame.TextRange
.Text = ReadSlide01
.ParagraphFormat.Alignment = ppAlignLeft
With .Font
.Name = "Arial"
.Size = 10
End With
End With
..Slides(thisSlide).Shapes(1).TextFrame.TextRange.Characters.Font.Size = 32