1 / 15

Pertemuan - 06 Macro Protections

Pertemuan - 06 Macro Protections. Matakuliah : F0292 Pengantar Macro dan VBA Tahun : 2007 Versi : 1. Learning Outcomes. Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Menerapkan proteksi Macro, Worksheet dan Workbook. Outline Materi. Security Level Macro Protection

lucas
Download Presentation

Pertemuan - 06 Macro Protections

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Pertemuan - 06Macro Protections Matakuliah : F0292 Pengantar Macro dan VBA Tahun : 2007 Versi : 1

  2. Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : • Menerapkan proteksi Macro, Worksheet dan Workbook

  3. Outline Materi • Security Level • Macro Protection • Personal Digital Signature

  4. Protection Proteksi yang akan diterapkan pada file Ms Excel (untuk sementara) ada dua, yaitu : • Worksheet Protection = untuk menjaga agar cell content dapat dapat diubah oleh pihak lain. • Macro Protection = untuk menjaga agar Macro yang telah dibuat tidak dapat diubah oleh pihak lain.

  5. Proteksi Worksheet secara Manual Pilih menu Tools, Protection dan Protect Sheet. Ketik Password (misal : aaa) dan tekan OK. Kemudian ketik Confirm Password (aaa) dan tekan OK.

  6. Proteksi Worksheet dengan Macro • Bukalah Visual Basic Editor, klik tombol mouse kanan pada worksheet yang akan diproteksi (misal : Sheet1), pilih Insert dan pilih Module, kemudian icon baru (module) akan muncul paling bawah.

  7. (Lanjutan : Proteksi Worksheet dengan Macro) Misalkan kita akan memproteksi Worksheet bernama Sheet1 dengan password = aaa. Klik ganda pada module baru tersebut (Module1). kemudian pada kolom sebelah kanan ketik perintah seperti di bawah ini : Kemudian tekan SAVE Sub ProteksiWorksheetSaya() Worksheets(“Sheet1”).protect password:=“aaa” End Sub

  8. Membuka Worksheet Protection • Pilih menu Tools, Protection dan Unprotect Sheet • Ketik Password untuk membuka proteksi.

  9. Macro Protection • Macro yang telah selesai dapat diproteksi agar tidak diubah / edit oleh pihak lain. • Tekan icon untuk membuka Visual Basic Editor (VBE). • Dalam VBE, pilih menu Tools, VBA Project Properties.

  10. Hidding Macro Code • Pada Tab bernama Protection ; centang kotak “Lock project for viewing” • Ketik Password (misal: 123) • Ketik Confirm Password (123) • Tekan OK dan SAVE

  11. Membuka Macro Protection • Tutup (Close) file yang ada buat. • Buka kembali (Open) • Pilih Enable Macros pada Popup • Buka Visual Basic Editor • Klik ganda pada icon VBAProject • Masukkan Password untuk membuka Macro

  12. Security Level Blokir semua macro secara otomatis, kecuali macro tersebut memiliki Trusted Certificate. Kita dapat memilih membuka atau menutup blokir macro yang ada dalam file secara manual. Semua Macro dapat langsung aktif (tidak direkomendasikan karena rawan virus)

  13. Personal Digital Signature (PDS) • Saat kita telah mengatur Security Level = HIGH, maka semua Macro akan diblokir…kecuali macro tersebut memiliki Trusted Certificate. • Trusted Certificate adalah sertifikasi kode khusus yang dikeluarkan oleh suatu perusahaan terpercaya sehingga tidak berbahaya dan menjamin macro yang ada dalam suatu file bukanlah virus. • Personal Digital Signature adalah kode sertifikasi yang dibuat sendiri agar hanya macro yang dibuat oleh kita saja yang dapat berjalan. Dengan PDS, Macro yang dibuat oleh sebuah komputer tidak akan berjalan di komputer lainnya.

  14. Instalasi PDS • Tidak semua komputer telah terinstal PDS • Anda dapat menginstal PDS melalui CD Original yang terdaftar dalam Office Shared Features. Catatan : • Untuk saat ini Personal Digital Signature tidak dibahas lebih lanjut.

  15. Latihan - 06 • Buka file F0292_Latihan_06.pdf dari server • Kerjakan latihan tersebut dalam file baru dengan nama : F0292_LAT06_NamaPendek.xls, dikumpulkan pada akhir Pertemuan ini. • Download Tugas – 06 dari www.binusmaya.binus.ac.id paling lambat dikumpulkan 7 (tujuh) hari kalender melalui e-mail dosen : To : gurtama@yahoo.com Subject : TUGAS – 06 F0292

More Related