Application Object In Microsoft VBA PowerPoint
Determines the working environment is PowerPoint or not:
Debug.Print Application Is PowerPoint.Application 'In PowerPoint will Prints: True
Selection Object In Microsoft VBA PowerPoint
The PowerPoint.ActiveWindow.Selection object in VBA contains whatever the user has selected.
The PowerPoint.ActiveWindow.Selection.Type properties in VBA consist of:
- shapes = ppSelectionShapes
- slides = ppSelectionSlides
- text = ppSelectionText
- nothing at all = ppSelectionNone
Creates Object Variables And Assign References
Dim pptPP As Presentation
Dim pptSld As PowerPoint.Slide
Dim pptShp As PowerPoint.Shape
'Assign Active Slide to Variable
Set pptSld = Application.ActiveWindow.View.Slide
'Assign slide by Index to Variable
Set pptSld = ActivePresentation.Slides(1)
Bibliography
https://learn.microsoft.com/ ( manual ebook )
https://www.autovbax.com/
http://www.pptalchemy.co.uk/
https://www.vbaplanet.com/
PowerPoint;Cengage
Microsoft PowerPoint;Microsoft Press
Tidak ada komentar:
Posting Komentar