You are on page 1of 3

)(Sub GenerateBusinessIntelligencePresentation

Dim pptApp As PowerPoint.Application

Dim pptPresentation As PowerPoint.Presentation

Dim pptSlide As PowerPoint.Slide

Create a new PowerPoint application and presentation '

Set pptApp = New PowerPoint.Application

Set pptPresentation = pptApp.Presentations.Add

Add a slide for the introduction '

Set pptSlide = pptPresentation.Slides.Add(1, ppLayoutTitle)

With pptSlide.Shapes.Title.TextFrame.TextRange

"Text = "Using Business Intelligence for Customers Targeting .

Font.Size = 24.

End With

With pptSlide.Shapes.Placeholders(2).TextFrame.TextRange

"Text = "Introduction.

Font.Size = 18.

End With

Add a slide for goal and objectives '

Set pptSlide = pptPresentation.Slides.Add(2, ppLayoutTitleOnly)

With pptSlide.Shapes.Title.TextFrame.TextRange

"Text = "Goal and Objectives.

Font.Size = 24.

End With

Add a slide for historical background '

Set pptSlide = pptPresentation.Slides.Add(3, ppLayoutTitleOnly)

With pptSlide.Shapes.Title.TextFrame.TextRange

"Text = "Historical Background.


Font.Size = 24.

End With

Add a slide for related works '

Set pptSlide = pptPresentation.Slides.Add(4, ppLayoutTitleOnly)

With pptSlide.Shapes.Title.TextFrame.TextRange

"Text = "Related Works.

Font.Size = 24.

End With

Add a slide for methodology '

Set pptSlide = pptPresentation.Slides.Add(5, ppLayoutTitleOnly)

With pptSlide.Shapes.Title.TextFrame.TextRange

"Text = "Methodology.

Font.Size = 24.

End With

Add a slide for results and analysis '

Set pptSlide = pptPresentation.Slides.Add(6, ppLayoutTitleOnly)

With pptSlide.Shapes.Title.TextFrame.TextRange

"Text = "Results and Analysis.

Font.Size = 24.

End With

Add a slide for conclusion '

Set pptSlide = pptPresentation.Slides.Add(7, ppLayoutTitleOnly)

With pptSlide.Shapes.Title.TextFrame.TextRange

"Text = "Conclusion.

Font.Size = 24.

End With
Add figures to the slides (modify the file paths as needed) '

Introduction slide figure '

Call AddPictureToSlide(pptSlide, "C:\Path\To\Figure1.jpg", 100, 100, 400, 300)

Historical background slide figure '

Set pptSlide = pptPresentation.Slides(3)

Call AddPictureToSlide(pptSlide, "C:\Path\To\Figure2.jpg", 100, 100, 400, 300)

Results and analysis slide figure '

Set pptSlide = pptPresentation.Slides(6)

Call AddPictureToSlide(pptSlide, "C:\Path\To\Figure3.jpg", 100, 100, 400, 300)

Save and close the presentation '

"pptPresentation.SaveAs "C:\Path\To\BusinessIntelligencePresentation.pptx

pptPresentation.Close

pptApp.Quit

Clean up '

Set pptSlide = Nothing

Set pptPresentation = Nothing

Set

You might also like