Skip to content

Instantly share code, notes, and snippets.

@nsdevaraj
Created November 13, 2023 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nsdevaraj/ab6bd23c5ca2ecdb9ccfe9cf4eb93ff7 to your computer and use it in GitHub Desktop.
Save nsdevaraj/ab6bd23c5ca2ecdb9ccfe9cf4eb93ff7 to your computer and use it in GitHub Desktop.
ppt macro
' Create a new presentation
Set ppt = Presentations.Add
' Add title slide
Set sld = ppt.Slides.Add(1, ppLayoutTitle)
Set shp = sld.Shapes.Title
Set txt = shp.TextFrame.TextRange
txt.Text = "Business Intelligence (BI)"
txt.Font.Size = 44
txt.Font.Bold = True
txt.ParagraphFormat.Alignment = ppAlignCenter
Set shp = sld.Shapes.Placeholders(2)
Set txt = shp.TextFrame.TextRange
txt.Text = "An introduction to BI concepts and tools"
txt.Font.Size = 32
txt.Font.Italic = True
txt.ParagraphFormat.Alignment = ppAlignCenter
' Add definition slide
Set sld = ppt.Slides.Add(2, ppLayoutText)
Set shp = sld.Shapes.Title
Set txt = shp.TextFrame.TextRange
txt.Text = "What is BI?"
txt.Font.Size = 40
txt.Font.Bold = True
txt.ParagraphFormat.Alignment = ppAlignCenter
Set shp = sld.Shapes.Placeholders(2)
Set txt = shp.TextFrame.TextRange
txt.Text = "Business intelligence (BI) comprises the strategies and technologies used by enterprises for the data analysis and management of business information." & vbNewLine & vbNewLine
txt.Text = txt.Text & "BI includes multiple tools and techniques to transform raw data into meaningful and actionable information." & vbNewLine & vbNewLine
txt.Text = txt.Text & "BI has a direct impact on organization’s strategic, tactical and operational business decisions. BI supports fact-based decision making using historical data rather than assumptions and gut feeling." & vbNewLine & vbNewLine
txt.Text = txt.Text & "Source: [Wikipedia](https://en.wikipedia.org/wiki/Business_intelligence)"
txt.Font.Size = 28
txt.ParagraphFormat.Bullet.Type = ppBulletUnnumbered
' Add benefits slide
Set sld = ppt.Slides.Add(3, ppLayoutText)
Set shp = sld.Shapes.Title
Set txt = shp.TextFrame.TextRange
txt.Text = "Why is BI important?"
txt.Font.Size = 40
txt.Font.Bold = True
txt.ParagraphFormat.Alignment = ppAlignCenter
Set shp = sld.Shapes.Placeholders(2)
Set txt = shp.TextFrame.TextRange
txt.Text = "BI offers a wide variety of benefits for businesses, such as:" & vbNewLine & vbNewLine
txt.Text = txt.Text & "Measurement: creating KPI (Key Performance Indicators) based on historic data" & vbNewLine
txt.Text = txt.Text & "Benchmarking: identifying and setting standards for varied processes" & vbNewLine
txt.Text = txt.Text & "Market analysis: understanding market trends and customer preferences" & vbNewLine
txt.Text = txt.Text & "Data visualization: presenting data in a user-friendly and engaging way" & vbNewLine
txt.Text = txt.Text & "Data-driven decision making: using facts and evidence to support business actions" & vbNewLine
txt.Font.Size = 28
txt.ParagraphFormat.Bullet.Type = ppBulletUnnumbered
' Add types slide
Set sld = ppt.Slides.Add(4, ppLayoutText)
Set shp = sld.Shapes.Title
Set txt = shp.TextFrame.TextRange
txt.Text = "What are the types of BI?"
txt.Font.Size = 40
txt.Font.Bold = True
txt.ParagraphFormat.Alignment = ppAlignCenter
Set shp = sld.Shapes.Placeholders(2)
Set txt = shp.TextFrame.TextRange
txt.Text = "BI can be classified into different types according to the purpose and scope of the analysis, such as:" & vbNewLine & vbNewLine
txt.Text = txt.Text & "Descriptive analytics: summarizing what has happened in the past using metrics and reports" & vbNewLine
txt.Text = txt.Text & "Diagnostic analytics: exploring why something has happened in the past using drill-down and data mining" & vbNewLine
txt.Text = txt.Text & "Predictive analytics: forecasting what will happen in the future using statistical models and machine learning" & vbNewLine
txt.Text = txt.Text & "Prescriptive analytics: suggesting what should be done in the future using optimization and simulation" & vbNewLine
txt.Font.Size = 28
txt.ParagraphFormat.Bullet.Type = ppBulletUnnumbered
' Add tools slide
Set sld = ppt.Slides.Add(5, ppLayoutText)
Set shp = sld.Shapes.Title
Set txt = shp.TextFrame.TextRange
txt.Text = "What are the tools of BI?"
txt.Font.Size = 40
txt.Font.Bold = True
txt.ParagraphFormat.Alignment = ppAlignCenter
Set shp = sld.Shapes.Placeholders(2)
Set txt = shp.TextFrame.TextRange
txt.Text = "BI tools are software applications that enable users to access, analyze and visualize data. Some of the most popular BI tools are:" & vbNewLine & vbNewLine
txt.Text = txt.Text & "Microsoft Power BI: a cloud-based platform that integrates with Excel and other Microsoft products" & vbNewLine
txt.Text = txt.Text & "Tableau: a desktop and web-based platform that specializes in data visualization and dashboarding" & vbNewLine
txt.Text = txt.Text & "QlikView: a desktop and web-based platform that offers data discovery and self-service analytics" & vbNewLine
txt.Text = txt.Text & "SAP BusinessObjects: a suite of applications that provides enterprise reporting and data warehousing" & vbNewLine
txt.Text = txt.Text & "IBM Cognos Analytics: a web-based platform that supports business intelligence and performance management" & vbNewLine
txt.Font.Size = 28
txt.ParagraphFormat.Bullet.Type = ppBulletUnnumbered
' Add examples slide
Set sld = ppt.Slides.Add(6, ppLayoutText)
Set shp = sld.Shapes.Title
Set txt = shp.TextFrame.TextRange
txt.Text = "What are some examples of BI in action?"
txt.Font.Size = 40
txt.Font.Bold = True
txt.ParagraphFormat.Alignment = ppAlignCenter
Set shp = sld.Shapes.Placeholders(2)
Set txt = shp.TextFrame.TextRange
txt.Text = "BI can be applied to various domains and industries to solve real-world problems and improve performance. Here are some examples of how leading companies use BI:" & vbNewLine & vbNewLine
txt.Text = txt.Text & "American Express: uses BI to analyze customer behavior and preferences, and offer personalized products and services" & vbNewLine
txt.Text = txt.Text & "Chipotle: uses BI to monitor and optimize its supply chain, inventory and food quality" & vbNewLine
txt.Text = txt.Text & "Netflix: uses BI to collect and analyze user data, and provide personalized recommendations and content" & vbNewLine
txt.Text = txt.Text & "Starbucks: uses BI to track and analyze customer transactions, loyalty and feedback" & vbNewLine
txt.Text = txt.Text & "Walmart: uses BI to optimize its pricing, assortment and promotion strategies" & vbNewLine
txt.Font.Size = 28
txt.ParagraphFormat.Bullet.Type = ppBulletUnnumbered
' Add challenges slide
Set sld = ppt.Slides.Add(7, ppLayoutText)
Set shp = sld.Shapes.Title
Set txt = shp.TextFrame.TextRange
txt.Text = "What are the challenges of BI?"
txt.Font.Size = 40
txt.Font.Bold = True
txt.ParagraphFormat.Alignment = ppAlignCenter
Set shp = sld.Shapes.Placeholders(2)
Set txt = shp.TextFrame.TextRange
txt.Text = "BI is not without its challenges and limitations. Some of the common issues that BI users and practitioners face are:" & vbNewLine & vbNewLine
txt.Text = txt.Text & "Data quality: ensuring that the data used for BI is accurate, consistent and reliable" & vbNewLine
txt.Text = txt.Text & "Data security: protecting the data from unauthorized access, modification and loss" & vbNewLine
txt.Text = txt.Text & "Data integration: combining data from different sources and formats into a unified view" & vbNewLine
txt.Text = txt.Text & "Data literacy: developing the skills and knowledge to understand and communicate data insights" & vbNewLine
txt.Text = txt.Text & "Data ethics: adhering to the principles and standards of responsible and ethical data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment