VBA Code to Convert Ppwerpoint Slide to Image (JPEG)
Here is a simple code that will Export all slides in a powerpoint presentation to Jpeg files
Sub Save_PowerPoint_Slide_as_Images()
Dim sImagePath As String
Dim sImageName As String
Dim oSlide As Slide '* Slide Object
Dim lScaleWidth As Long '* Scale Width
Dim lScaleHeight As Long '* Scale Height
On Error GoTo Err_ImageSave
sImagePath = "C:\ForBlogger\"
For Each oSlide In ActivePresentation.Slides
sImageName = oSlide.Name & ".jpg"
oSlide.Export sImagePath & sImageName, "JPG"
Next oSlide
Err_ImageSave:
If Err <> 0 Then
MsgBox Err.Description
End If
End Sub
Showing posts with label Ppwerpoint to image conversion using VBA. Show all posts
Showing posts with label Ppwerpoint to image conversion using VBA. Show all posts
Wednesday, May 20, 2009
Subscribe to:
Posts (Atom)
Download Windows Live Toolbar and personalize your Web experience! Add custom buttons to get the information you care about most.