Could't find a solution? Ask the experts in our
Save Powerpoint Slides as Images using VBA
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
- Login or register to post comments
- Feed: vbadb feed
- Original article
- 174 reads

