Skip to content

VBscript for Powerpoint automation-programmatically change PPT layout

License

Notifications You must be signed in to change notification settings

CustosClarus/Powerpoint-VBscript-hack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Readme

Powerpoint VBscript Hack!
Explore the docs »
Report Bug

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

About The Project

Product Name Screen Shot

This simple yet powerful VBscript method can be used to progamatically change layout and content of slides. Do give it a try. I have put comments in code for easy undestanding

Use the README.md to get started.

(back to top)

Built With

This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.

  • To run this code, simply open Developer tab in PowerPoint Depending upon the version of PowerPoint you need to enable this tab using "customize ribbon" option under "PowerPoint options",
  • Place the code change the function to one you want or keep as it Run the macro and see changes as per logic defined. I have put comments in code for understanding and changing.

(back to top)

Getting Started

The best place to start is to explore VB functions in MS-powerpoint using MSDN library

Prerequisites

  • Powerpoint with Macro-enabled

Usage

oSl.Shapes(1).TextFrame.TextRange.Paragraphs(1).Lines(1, 1).Text = "" where os1 is object of ActivePresentation.Slides.

image

shape(1) will select main-heading and paragraph represent orders (1,2)and Lines be donate lines of paragraph. The above line will thus delete the main-heading. The paragraph is more relevant in text-box if you want to change the first-para heading you will select "paragraph(2).".

Please see the code for further comments. For more examples, please refer to the Documentation

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Your Name - @Catchabyte1 - [email protected]

Project Link: https://github.com/asadzz/Powerpoint-VBscript-hack

(back to top)

Acknowledgments

Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!

Taken from website

(back to top)

About

VBscript for Powerpoint automation-programmatically change PPT layout

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published