SlideShare a Scribd company logo
1 of 13
Download to read offline
Membuat Media Belajar dengan VBA PowerPoint
Oleh : Eko Budiana
http://www.trialfull.blogspot.com
Pada kesempatan yang baik ini kita akan sedikit belajar membuat media belajar matematika dengan program
Microsoft Office PowerPoint dengan memanfaatkan bahasa pemrograman visual basic for application (vba).
Langkah – langkah pembuatannya :
1. Buka program Microsoft Office PowerPoint
2. Setting makro dengan cara klik tab office ribbon –powerpoint options – popular – show developer tab
in the ribbon.
3. Klik tab developer – macro security –enable all macros –OK.
4. Buat shape sebuah lingkaran dengan cara insert- shapes-pilih oval – kemudian drag ke area kerja,
masih dalam keadaan terseleksi klik home –select –selection pane.
5. Klik dua kali pada bagian shapes on this slide beri nama dengan lingkaran1.
6. Ulangi langkah no 5 sehingga akan terbentuk lingkaran dengan nama shape lingkaran2, lingkaran3,
lingkaran4 seperti gambar berikut.
7. Buat lagi lingkaran seperti pada langkah no 6 sehingga terbentuk empat lingkaran lagi disampingnya
dengan nama shape lingkaran5, lingkaran6, lingkaran7, lingkaran8.
8. Buat lagi delapan buah shape berbentuk lingkaran dengan nama shape yaitu lingkaran9, lingkaran10,
lingkaran11, lingkaran12, lingkaran13, lingkaran14, lingkaran15, lingkaran16.
9. Buat judul media, dan text tanda jumlah dan tanda sama dengan dengan cara insert textbox.
10. Klik tab developer – spinbutton.
Lalu drag ke area kerja.
Secara default nama spinbutton yang telah kita buat tadi bernama SpinButton1 yang dapat dilihat pada
bagian home-select-selection pane.
11. Dan dengan cara yang yang sama buatlah spinbutton yang kedua.
12. Klik SpinButton1 –tab developer – properties dan ubah nilai min = 1 dan max = 4.
Ini menjelaskan bahwa spinbutton akan mempunyai nilai minimum =1 dan maksimum = 4.
13. Klik dua kali pada SpinButton1 yang telah dibuat tadi sehingga akan tampil jendela vba editor tempat
menulis kode pemrograman vba.
14. Kemudian tulislah kode berikut :
If Val(SpinButton1) = 1 Then
ActivePresentation.Slides(1).Shapes("lingkaran1").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran2").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran3").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran4").Visible = msoFalse
ElseIf Val(SpinButton1) = 2 Then
ActivePresentation.Slides(1).Shapes("lingkaran1").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran2").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran3").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran4").Visible = msoFalse
ElseIf Val(SpinButton1) = 3 Then
ActivePresentation.Slides(1).Shapes("lingkaran1").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran2").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran3").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran4").Visible = msoFalse
ElseIf Val(SpinButton1) = 4 Then
ActivePresentation.Slides(1).Shapes("lingkaran1").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran2").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran3").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran4").Visible = msoTrue
End If
Penjelasan :
a. Kode tersebut akan terletak antara Private Sub SpinButton1………. ()
………..KODE ……………
End Sub
b. Kode :
ActivePresentation.Slides(1).Shapes("lingkaran1").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran2").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran3").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran4").Visible = msoFalse
Dapat diartikan bahwa shapes lingkaran 1 akan muncul ( visible) sedangkan shapes
lingkaran 2, 3, 4 akan disembunyikan sehingga yang tampak hanya shapes lingkaran1.
15. Klik SpinButton2 –tab developer – properties dan ubah nilai min = 1 dan max = 4 ( seperti pada langkah
no.12 )
16. Klik dua kali pada SpinButton2 kemudian tampil jendela editor vba .
Lalu tulis kode berikut :
If Val(SpinButton2) = 1 Then
ActivePresentation.Slides(1).Shapes("lingkaran5").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran6").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran7").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran8").Visible = msoFalse
ElseIf Val(SpinButton2) = 2 Then
ActivePresentation.Slides(1).Shapes("lingkaran5").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran6").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran7").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran8").Visible = msoFalse
ElseIf Val(SpinButton2) = 3 Then
ActivePresentation.Slides(1).Shapes("lingkaran5").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran6").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran7").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran8").Visible = msoFalse
ElseIf Val(SpinButton2) = 4 Then
ActivePresentation.Slides(1).Shapes("lingkaran5").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran6").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran7").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran8").Visible = msoTrue
End If
17. Buat kode untuk menentukan fungsi hasil.
Kode :
Sub hasil()
If Val(SpinButton1) + Val(SpinButton2) = 2 Then
ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse
ElseIf Val(SpinButton1) + Val(SpinButton2) = 3 Then
ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse
ElseIf Val(SpinButton1) + Val(SpinButton2) = 4 Then
ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse
ElseIf Val(SpinButton1) + Val(SpinButton2) = 5 Then
ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse
ElseIf Val(SpinButton1) + Val(SpinButton2) = 6 Then
ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoFalse
ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse
ElseIf Val(SpinButton1) + Val(SpinButton2) = 7 Then
ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse
ElseIf Val(SpinButton1) + Val(SpinButton2) = 8 Then
ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoTrue
ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoTrue
End If
End Sub
18. Kemudian panggil fungsi hasil tersebut lewat spinbutton1 dan spinbutton2 dengan cara menambah
perintah Call hasil.
19. Buat tombol keluar dengan cara insert – shapes – pilih model ( misal oval ) drag ke area kerja lalu ketik
x.
Klik tombol keluar – insert – hyperlink to – pilih end show – OK.
20. Agar ketika slideshow interaktifitas hanya berjalan dengan menekan tombol – tombol tertentu
sehingga ketika klik di area kosong slideshow powerpoint tidak berpindah maka perlu disetting dengan
cara klik slide show – set up slide show – pilih Browsed at a kiosk – OK.
21. Simpan file dengan file type : PowerPoint Macro-Enabled Presentation atau PowerPoint Macro-Enabled
Show.
Atau
Selamat mencoba dan semoga bermanfaat.

More Related Content

Recently uploaded

New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 

Recently uploaded (20)

New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Membuat media belajar dengan vba power point

  • 1. Membuat Media Belajar dengan VBA PowerPoint Oleh : Eko Budiana http://www.trialfull.blogspot.com Pada kesempatan yang baik ini kita akan sedikit belajar membuat media belajar matematika dengan program Microsoft Office PowerPoint dengan memanfaatkan bahasa pemrograman visual basic for application (vba). Langkah – langkah pembuatannya : 1. Buka program Microsoft Office PowerPoint 2. Setting makro dengan cara klik tab office ribbon –powerpoint options – popular – show developer tab in the ribbon.
  • 2. 3. Klik tab developer – macro security –enable all macros –OK. 4. Buat shape sebuah lingkaran dengan cara insert- shapes-pilih oval – kemudian drag ke area kerja, masih dalam keadaan terseleksi klik home –select –selection pane. 5. Klik dua kali pada bagian shapes on this slide beri nama dengan lingkaran1.
  • 3. 6. Ulangi langkah no 5 sehingga akan terbentuk lingkaran dengan nama shape lingkaran2, lingkaran3, lingkaran4 seperti gambar berikut. 7. Buat lagi lingkaran seperti pada langkah no 6 sehingga terbentuk empat lingkaran lagi disampingnya dengan nama shape lingkaran5, lingkaran6, lingkaran7, lingkaran8.
  • 4. 8. Buat lagi delapan buah shape berbentuk lingkaran dengan nama shape yaitu lingkaran9, lingkaran10, lingkaran11, lingkaran12, lingkaran13, lingkaran14, lingkaran15, lingkaran16. 9. Buat judul media, dan text tanda jumlah dan tanda sama dengan dengan cara insert textbox.
  • 5. 10. Klik tab developer – spinbutton. Lalu drag ke area kerja. Secara default nama spinbutton yang telah kita buat tadi bernama SpinButton1 yang dapat dilihat pada bagian home-select-selection pane.
  • 6. 11. Dan dengan cara yang yang sama buatlah spinbutton yang kedua. 12. Klik SpinButton1 –tab developer – properties dan ubah nilai min = 1 dan max = 4. Ini menjelaskan bahwa spinbutton akan mempunyai nilai minimum =1 dan maksimum = 4.
  • 7. 13. Klik dua kali pada SpinButton1 yang telah dibuat tadi sehingga akan tampil jendela vba editor tempat menulis kode pemrograman vba. 14. Kemudian tulislah kode berikut : If Val(SpinButton1) = 1 Then ActivePresentation.Slides(1).Shapes("lingkaran1").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran2").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran3").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran4").Visible = msoFalse ElseIf Val(SpinButton1) = 2 Then ActivePresentation.Slides(1).Shapes("lingkaran1").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran2").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran3").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran4").Visible = msoFalse ElseIf Val(SpinButton1) = 3 Then ActivePresentation.Slides(1).Shapes("lingkaran1").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran2").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran3").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran4").Visible = msoFalse
  • 8. ElseIf Val(SpinButton1) = 4 Then ActivePresentation.Slides(1).Shapes("lingkaran1").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran2").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran3").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran4").Visible = msoTrue End If Penjelasan : a. Kode tersebut akan terletak antara Private Sub SpinButton1………. () ………..KODE …………… End Sub b. Kode : ActivePresentation.Slides(1).Shapes("lingkaran1").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran2").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran3").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran4").Visible = msoFalse Dapat diartikan bahwa shapes lingkaran 1 akan muncul ( visible) sedangkan shapes lingkaran 2, 3, 4 akan disembunyikan sehingga yang tampak hanya shapes lingkaran1. 15. Klik SpinButton2 –tab developer – properties dan ubah nilai min = 1 dan max = 4 ( seperti pada langkah no.12 ) 16. Klik dua kali pada SpinButton2 kemudian tampil jendela editor vba . Lalu tulis kode berikut : If Val(SpinButton2) = 1 Then ActivePresentation.Slides(1).Shapes("lingkaran5").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran6").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran7").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran8").Visible = msoFalse ElseIf Val(SpinButton2) = 2 Then ActivePresentation.Slides(1).Shapes("lingkaran5").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran6").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran7").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran8").Visible = msoFalse
  • 9. ElseIf Val(SpinButton2) = 3 Then ActivePresentation.Slides(1).Shapes("lingkaran5").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran6").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran7").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran8").Visible = msoFalse ElseIf Val(SpinButton2) = 4 Then ActivePresentation.Slides(1).Shapes("lingkaran5").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran6").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran7").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran8").Visible = msoTrue End If 17. Buat kode untuk menentukan fungsi hasil. Kode : Sub hasil() If Val(SpinButton1) + Val(SpinButton2) = 2 Then ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse ElseIf Val(SpinButton1) + Val(SpinButton2) = 3 Then ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue
  • 10. ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse ElseIf Val(SpinButton1) + Val(SpinButton2) = 4 Then ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse ElseIf Val(SpinButton1) + Val(SpinButton2) = 5 Then ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse ElseIf Val(SpinButton1) + Val(SpinButton2) = 6 Then ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoFalse ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse ElseIf Val(SpinButton1) + Val(SpinButton2) = 7 Then ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoFalse ElseIf Val(SpinButton1) + Val(SpinButton2) = 8 Then ActivePresentation.Slides(1).Shapes("lingkaran9").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran10").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran11").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran12").Visible = msoTrue
  • 11. ActivePresentation.Slides(1).Shapes("lingkaran13").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran14").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran15").Visible = msoTrue ActivePresentation.Slides(1).Shapes("lingkaran16").Visible = msoTrue End If End Sub 18. Kemudian panggil fungsi hasil tersebut lewat spinbutton1 dan spinbutton2 dengan cara menambah perintah Call hasil.
  • 12. 19. Buat tombol keluar dengan cara insert – shapes – pilih model ( misal oval ) drag ke area kerja lalu ketik x. Klik tombol keluar – insert – hyperlink to – pilih end show – OK. 20. Agar ketika slideshow interaktifitas hanya berjalan dengan menekan tombol – tombol tertentu sehingga ketika klik di area kosong slideshow powerpoint tidak berpindah maka perlu disetting dengan cara klik slide show – set up slide show – pilih Browsed at a kiosk – OK.
  • 13. 21. Simpan file dengan file type : PowerPoint Macro-Enabled Presentation atau PowerPoint Macro-Enabled Show. Atau Selamat mencoba dan semoga bermanfaat.