Programming PowerPoint With VBA Straight to the Point
eBook - ePub

Programming PowerPoint With VBA Straight to the Point

Eduardo N Sanchez

  1. 57 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Programming PowerPoint With VBA Straight to the Point

Eduardo N Sanchez

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

This book assumes you already use PowerPoint and want to automate or enhance your presentations using Visual Basic for Applications (VBA). This book includes VBA samples for working with layouts, themes & masters, creating tables, drawing objects, charting, animation effects and event programming. It also includes a chapter for interfacing between PowerPoint and Word, Excel, Access or Outlook.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Programming PowerPoint With VBA Straight to the Point est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Programming PowerPoint With VBA Straight to the Point par Eduardo N Sanchez en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatica et Applicazioni desktop. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2022
ISBN
9781615471638
Édition
1
1 Basic Operations
Introduction
There is a joke saying that PowerPoint is a free application that comes along when you buy Excel

Actually, PowerPoint is a complex program that offers everything you need to create and manage professionally built presentations.
This book assumes you are already a PowerPoint user who wants to automate and enhance your presentations using Visual Basic for Applications, which is currently the Office programming language. It is also a pre-requisite that you have basic knowledge on how VBA works, as we do not have room here to teach it from the ground up.
We will review some concepts, but the main goal of this book will be to show how VBA can make PowerPoint even better. Welcome aboard!
Creating a simple presentation
Our first example is quite straightforward: the code generates a new presentation with six slides, each one containing a title and a bulleted list. The picture below shows the final result. Observe that the chosen layout contains two shapes; the first one will hold the slide title whereas the second will be used for the list.
Sub AddSlides()
Dim Pre As Presentation, sld As Slide, i%, j%
Set Pre = Presentations.Add(msoTrue)
j = 1
For i = 1 To 6
Set sld = Pre.Slides.Add(Index:=Pre.Slides.Count + 1, Layout:=ppLayoutText)
sld.Shapes(1).TextFrame.TextRange = "Title of Slide " &i
sld.Shapes(2).TextFrame.TextRange = "Line " &CStr(j) &vbNewLine& _
"Line " &CStr(j + 1) &vbNewLine& "Line " &CStr(j + 2) &vbNewLine
j = j + 3
Next
End Sub
This presentation was created with VBA
Where is the macro recorder?
Excel programmers know of this handy tool that records actions and generates the corresponding code. It often requires adjustments, but will give you the necessary properties and methods for that particular task. For example, if you format some text with the recorder turned on, it will give you VBA code that you can play back to do the same job again.
Unfortunately, since PowerPoint 2007 Microsoft removed this functionality from the program.
Object Browser and Intellisense
Two features that will help finding needed properties and methods are the object browser window and the so called Intellisense menu.
To activate the object browser view, just press the F2 key when in the VB editor; you will see something similar to the image beneath. It can be used to browse the object tree and search for the available elements. To return to the code window, press F7.
Choose a class to see a list of its members
Another useful feature is the dropdown menu that appears when you type a period after an object in the VB editor. It will list most of the valid properties and methods you can use with that specific object. To make sure this option is active, go to Tools > Options and confirm that auto list members is checked.
The dropdown displays a list of options.
Saving as PDF
It is simple to save a presentat...

Table des matiĂšres

  1. About the Author
  2. Acknowledgments
  3. Code used in this book
  4. 1 Basic Operations
  5. Introduction
  6. Creating a simple presentation
  7. Object Browser and Intellisense
  8. Saving as PDF
  9. Bulleted lists and pictures
  10. Changing views
  11. 2 Layouts, Themes and Masters
  12. Applying a pre-existing theme
  13. Resetting the theme font
  14. Listing Master and Layout Names
  15. Customizing Master fonts
  16. Adding a new layout
  17. 3 Creating Tables
  18. Inserting and formatting
  19. More table formatting
  20. A 3D Table
  21. Merging and splitting cells
  22. 4 Drawing and Manipulating Objects
  23. Creating random shapes
  24. Building free form shapes
  25. Inserting a 3D shape
  26. Deconstructing a shape
  27. Adding Smart Art
  28. 5 Charting
  29. Generating a simple chart
  30. Chart types
  31. A donut chart with offset
  32. Making Bubbles
  33. A Two Level Axis Label
  34. Tree maps and Sun bursts
  35. 6 Animation Effects
  36. Adding sounds
  37. Sequential effects for a shape
  38. Slowly drawing a rectangle
  39. A bouncing moon
  40. Filling a tank
  41. Something that does not work
  42. 7 Working with Events
  43. Initializing events manually
  44. Enabling events via an add-in
  45. 8 Interactive Presentations
  46. The Quiz Creator
  47. Valves and Piping
  48. 9 Interfacing with other Applications
  49. Early binding versus late binding
  50. Excel and PowerPoint
  51. Word and PowerPoint
  52. Access and PowerPoint
  53. Outlook and PowerPoint
  54. One Note and PowerPoint
  55. 10 Customizing the Ribbon
  56. Initializing events
  57. Creating a new Ribbon tab
  58. Conclusion
  59. Index
Normes de citation pour Programming PowerPoint With VBA Straight to the Point

APA 6 Citation

Sanchez, E. (2022). Programming PowerPoint With VBA Straight to the Point (1st ed.). Holy Macro! Books. Retrieved from https://www.perlego.com/book/3259245/programming-powerpoint-with-vba-straight-to-the-point-pdf (Original work published 2022)

Chicago Citation

Sanchez, Eduardo. (2022) 2022. Programming PowerPoint With VBA Straight to the Point. 1st ed. Holy Macro! Books. https://www.perlego.com/book/3259245/programming-powerpoint-with-vba-straight-to-the-point-pdf.

Harvard Citation

Sanchez, E. (2022) Programming PowerPoint With VBA Straight to the Point. 1st edn. Holy Macro! Books. Available at: https://www.perlego.com/book/3259245/programming-powerpoint-with-vba-straight-to-the-point-pdf (Accessed: 15 October 2022).

MLA 7 Citation

Sanchez, Eduardo. Programming PowerPoint With VBA Straight to the Point. 1st ed. Holy Macro! Books, 2022. Web. 15 Oct. 2022.