WISE OWL EXERCISES
ADVANCED VBA EXERCISES
Advanced VBA | Links to other applications exercise | PowerPoint info to Excel
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
The answer to the exercise will be included and explained if you attend one of more of the courses listed below!
You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.
Open the PowerPoint presentation in the above folder. Feel free to press the F5 function key to run the slide show if you should so desire! Your aim is now to produce an Excel workbook containing summary slide information for this PowerPoint presentation, looking something like this:
Your workbook does not have to be neatly formatted like this
To achieve this, first create a module within this presentation, and within this create a subroutine called something like ListSlideInformationInExcel.
Reference the correct Microsoft Excel object library!
Write your subroutine so that it:
- Creates a new Excel workbook
- Puts a heading row at the top
- Loops over all the slides in the ActivePresentation, writing the names for each and the number of slides to the Excel workbook
Each slide has a Shapes collection, so something like ThisSlide.Shapes.Count would give you the number of slides.
Save your presentation with the same name, then close it down.