SlideShare a Scribd company logo
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

Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 

Recently uploaded (20)

Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 

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 Hubspot
Marius 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 ChatGPT
Expeed 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 Engineerings
Pixeldarts
 
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
ThinkNow
 
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
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
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
Neil 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 2024
Albert 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 Insights
Kurio // 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 2024
Search 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 summary
SpeakerHub
 
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 Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit 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 management
MindGenius
 
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.