View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Lorcan Dene[_2_] Lorcan Dene[_2_] is offline
external usenet poster
 
Posts: 4
Default Automatic Password Protect Sheet

I've coded a button to open a file, copy some info from 1 sheet to another,
but i need the button to first unprotect the sheet, then do its copying, then
protect the sheet when finsihed.

i've tried:

Worksheets("Sheet1!").Protect (password)
and hence
WorkSheets("Sheet1!").UnProtect (password)

but it doesnt password protect it, only protects it normally, anyone help
please?