Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub MkVideo()
  2.  
  3. Dim slideNumber As Single
  4. slideNumber = InputBox("Select the slide number you will convert to a video file :", "SELECT SLIDE", 1)
  5. If slideNumber = vbNullSingle Then slideNumber = 1
  6. ActivePresentation.Slides(1).Select
  7.  
  8. Dim videoName As String
  9. videoName = InputBox("Enter the name of your video :", "VIDEO RENAME", "New video")
  10. If videoName = vbNullString Then videoName = ("New video")
  11. If ActivePresentation.CreateVideoStatus <> ppMediaTaskStatusInProgress Then
  12. ActivePresentation.CreateVideo FileName:=videoName, _
  13. UseTimingsAndNarrations:=True, _
  14. VertResolution:=1080, _
  15. FramesPerSecond:=27, _
  16. Quality:=100
  17. Else: MsgBox "There is another conversion to video in progress"
  18. End If
  19. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement