Untitled
unknown
plain_text
5 months ago
4.8 kB
1
Indexable
Sub CreatePresentation() ' Create a PowerPoint application and presentation Dim PowerPointApp As Object Dim Presentation As Object Dim Slide As Object Dim Shape As Object Set PowerPointApp = CreateObject("PowerPoint.Application") Set Presentation = PowerPointApp.Presentations.Add ' Slide 1: Title Slide Set Slide = Presentation.Slides.Add(1, 1) ' 1 = ppLayoutTitle Slide.Shapes(1).TextFrame.TextRange.Text = "Petroleum Refining and Fuels" Slide.Shapes(2).TextFrame.TextRange.Text = "Understanding the Process and Importance" ' Slide 2: Overview of Petroleum Refining Set Slide = Presentation.Slides.Add(2, 2) ' 2 = ppLayoutText Slide.Shapes(1).TextFrame.TextRange.Text = "Overview of Petroleum Refining" Slide.Shapes(2).TextFrame.TextRange.Text = "Petroleum refining is the process of transforming crude oil into useful products like gasoline, diesel, jet fuel, and lubricants. It involves separating, converting, and treating the crude oil to meet market demands." ' Add graphic: A rectangle representing refining complexity Set Shape = Slide.Shapes.AddShape(msoShapeRectangle, 50, 200, 300, 100) Shape.Fill.ForeColor.RGB = RGB(200, 100, 100) Shape.TextFrame.TextRange.Text = "Refining Process Flow" ' Slide 3: Key Processes in Refining Set Slide = Presentation.Slides.Add(3, 2) Slide.Shapes(1).TextFrame.TextRange.Text = "Key Processes in Refining" Slide.Shapes(2).TextFrame.TextRange.Text = "1. Distillation: Separation of oil into fractions.\n2. Conversion: Changing the structure of hydrocarbons.\n3. Treatment: Removing impurities like sulfur." ' Add graphic: A flowchart showing distillation, conversion, treatment Set Shape = Slide.Shapes.AddShape(msoShapeFlowchartProcess, 50, 250, 200, 50) Shape.Fill.ForeColor.RGB = RGB(0, 100, 200) Shape.TextFrame.TextRange.Text = "Distillation" Set Shape = Slide.Shapes.AddShape(msoShapeFlowchartProcess, 270, 250, 200, 50) Shape.Fill.ForeColor.RGB = RGB(0, 200, 100) Shape.TextFrame.TextRange.Text = "Conversion" Set Shape = Slide.Shapes.AddShape(msoShapeFlowchartProcess, 490, 250, 200, 50) Shape.Fill.ForeColor.RGB = RGB(200, 200, 0) Shape.TextFrame.TextRange.Text = "Treatment" ' Slide 4: Products of Refining Set Slide = Presentation.Slides.Add(4, 2) Slide.Shapes(1).TextFrame.TextRange.Text = "Products of Refining" Slide.Shapes(2).TextFrame.TextRange.Text = "1. Gasoline\n2. Diesel\n3. Jet Fuel\n4. Lubricants\n5. Petrochemicals\nThese products are essential for transportation, industry, and everyday life." ' Add graphic: Pie chart showing product breakdown Set Shape = Slide.Shapes.AddChart2(251, xlPie, 50, 200, 400, 250).Chart With Shape.SeriesCollection.NewSeries .XValues = Array("Gasoline", "Diesel", "Jet Fuel", "Lubricants", "Petrochemicals") .Values = Array(40, 30, 15, 10, 5) End With ' Slide 5: Environmental Impact Set Slide = Presentation.Slides.Add(5, 2) Slide.Shapes(1).TextFrame.TextRange.Text = "Environmental Impact of Refining" Slide.Shapes(2).TextFrame.TextRange.Text = "Refining emits greenhouse gases and pollutants. New technologies aim to reduce these emissions and make refining more efficient and sustainable." ' Add graphic: A cloud shape representing emissions Set Shape = Slide.Shapes.AddShape(msoShapeCloud, 150, 250, 300, 150) Shape.Fill.ForeColor.RGB = RGB(150, 150, 150) Shape.TextFrame.TextRange.Text = "Emissions" ' Slide 6: Future of Fuels Set Slide = Presentation.Slides.Add(6, 2) Slide.Shapes(1).TextFrame.TextRange.Text = "Future of Fuels" Slide.Shapes(2).TextFrame.TextRange.Text = "The future of fuels is shaped by innovation. Biofuels, hydrogen, and synthetic fuels are being developed to reduce reliance on fossil fuels and lower carbon emissions." ' Add graphic: A sun and wind icon representing renewable energy Set Shape = Slide.Shapes.AddShape(msoShapeSun, 50, 250, 150, 150) Shape.Fill.ForeColor.RGB = RGB(255, 223, 0) Set Shape = Slide.Shapes.AddShape(msoShapeWindmill, 250, 250, 150, 150) Shape.Fill.ForeColor.RGB = RGB(150, 200, 250) ' Slide 7: Conclusion Set Slide = Presentation.Slides.Add(7, 2) Slide.Shapes(1).TextFrame.TextRange.Text = "Conclusion" Slide.Shapes(2).TextFrame.TextRange.Text = "Petroleum refining plays a crucial role in meeting global energy needs. As the world transitions to cleaner energy, refining processes and fuels will continue to evolve, balancing efficiency with environmental concerns." ' Show the PowerPoint presentation PowerPointApp.Visible = True End Sub
Editor is loading...
Leave a Comment