JELASNYA
Methoda Protect / UnProtect itu punya banyak PARAMETERs;
sedangkan yang pan Darto aplikasikan itu = semua parameter dianggap default 
(tidak perlu ditulis)

sintaks lengkapnya nya seperti ini
expression.Protect(Password, DrawingObjects, Contents, Scenarios, 
UserInterfaceOnly, AllowFormattingCells, AllowFormattingColumns, 
AllowFormattingRows, AllowInsertingColumns, AllowInsertingRows, 
AllowInsertingHyperlinks, AllowDeletingColumns, AllowDeletingRows, 
AllowSorting, AllowFiltering, AllowUsingPivotTables)

bagian yg ditulis dengan font warna maroon itu adalah parameter, lihat (untuk 
excel 2003) jumlahnya ada 16.

contoh penggunaan parameter
Sheet1.Protect (Password:="textpwd", AllowFormattingCells:=False, dst )


  ----- Original Message ----- 
  From: wahyu abdi 
  To: [email protected] 
  Sent: Saturday, May 22, 2010 1:25 PM
  Subject: Re: [belajar-excel] About protection
   

  just try record the procedure to protect sheet and see the code to modify



------------------------------------------------------------------------------
  From: Darto Chandra <[email protected]>
  To: excel <[email protected]>
  Sent: Sat, May 22, 2010 12:58:35 PM
  Subject: [belajar-excel] About protection



  Private Sub CommandButton1_ Click()
     Unprotect pw
     Summarize_to_ aNewTable
     Protect pw
     UserForm3.Show
  End Sub

  jika macro tersebut di fungsikan apa yang sudah kita set pada awal melakukan 
proteksi menjadi hilang. Seperti kita tahu pada saat kita melakukan protect 
sheet byk pilihan fungsi yang dapat kita aktifkan, so bagaimana caranya supaya 
fungsi yang diset pada awal tetap berfungsi setelah macro tersebut jalan? mohon 
petunjuk. Terima kasih

Kirim email ke