![]() |
#1
|
|||
|
|||
![]()
Hi,
I am looking for VBA macro code for saving existing ppt to pdf in the same file folder. Any help would be highly appreciated. Thanks. Mashiul |
#2
|
|||
|
|||
![]()
Something like:
Code:
Sub toPDF() Dim opres As Presentation Set opres = ActivePresentation Dim strName As String strName = Left(opres.Name, InStrRev(opres.Name, ".") - 1) opres.SaveCopyAs FileName:=opres.Path & "\" & strName & ".PDF", FileFormat:=ppSaveAsPDF MsgBox "Saved as :" & opres.Path & "\" & strName & ".PDF" End Sub |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
rvessio | Word VBA | 4 | 07-25-2016 12:37 PM |
![]() |
LOUF | Word VBA | 1 | 12-07-2015 06:47 PM |
![]() |
shabbaranks | Word VBA | 2 | 05-20-2011 01:02 AM |
Macro to Save Help | clarkson001 | Word | 0 | 02-14-2011 06:41 AM |
Macro Won't Save | lou0915 | Word VBA | 2 | 10-17-2009 08:13 PM |