Article ID: 163145
Article Last Modified on 10/11/2006
AddPicture(FileName, LinkToFile, SaveWithDocument, Left, Top, Width, _
Height)
For more information about the AddPicture method, click the Office
Assistant, type "AddPicture," click Search, and then click to view
"AddPicture Method."
120802 Office: How to Add/Remove a Single Office Program or Component
Sub AddPictureToSlide()
With ActivePresentation.Slides(1).Shapes
' Adds a picture to slide 1 in the active presentation.
.AddPicture "c:\win95\setup.bmp", _
msoFalse, msoTrue, 0, 0, 200, 200
End With
End Sub
Sub UseAddPictureReturn()
' Used to store an object reference.
Dim MyShape As Shape
With ActivePresentation.Slides(1).Shapes
' Get an object reference to the picture.
Set MyShape = .AddPicture("c:\win95\setup.bmp", _
msoFalse, msoTrue, 0, 0, 200, 200)
End With
' Change the height and width of the picture .
MyShape.Width = 250
MyShape.Height = 250
End Sub
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 8.00 ppt8 vba vbe
Keywords: kbcode kbdtacode kbhowto kbmacro kbprogramming KB163145