Article ID: 162783
Article Last Modified on 10/11/2006
Sub MakePictureFullScreen()
' Specify the path to graphic file.
Const strFileName As String = "c:\win95\setup.bmp"
' Specify the slide on which you want to place the graphic.
Const lngSlideNumber As Long = 1
' Store the shape reference.
Static shapePicture As Shape
' Store slide height and width.
Dim lngHeight As Long
Dim lngWidth As Long
' Get the slide height and width.
lngHeight = ActivePresentation.PageSetup.SlideHeight
lngWidth = ActivePresentation.PageSetup.SlideWidth
' Add the picture.
With ActivePresentation.Slides(lngSlideNumber).Shapes
Set shapePicture = .AddPicture(strFileName, _
msoFalse, _
msoTrue, _
0, 0, _
lngWidth, _
lngHeight)
End With
' Send the picture to the back.
shapePicture.ZOrder msoSendToBack
End Sub
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 97 8.00 kbmacro kbpptvba ppt8 vba vbe
Keywords: kbcode kbdtacode kbhowto kbmacro kbprogramming KB162783