PowerPoint_starten.vbs 577 B

123456789101112131415161718
  1. On Error Resume Next
  2. Set objPPT = CreateObject("PowerPoint.Application")
  3. objPPT.Visible = True
  4. Set objPresentation = objPPT.Presentation.Add(True)
  5. Select Case Err.Number
  6. Case 0
  7. On Error Goto 0
  8. With objPresentation.Slides
  9. graphSlideID = .Add(.Count + 1, ppLayoutBlank).SlideID
  10. objPPT.ActivePresentation.Slides.Range(Array(.Count)).Select
  11. End With
  12. Case Else
  13. With WSscript
  14. .Echo "The unexpected mistake with number" & in_blanks(Err.Number) & _
  15. "and description" & in_blanks(Err.Description) & "has happened."
  16. .Quit 1
  17. End With
  18. End Select