View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Vergel Adriano Vergel Adriano is offline
external usenet poster
 
Posts: 857
Default Sheet protection and cell fomat changes

ws.Protect Password:="password", AllowFormattingCells:=True,
AllowFormattingColumns:=True, AllowFormattingRows:=True


"Stephen" wrote:

Hi Folks,

i have a macro which automatically protects all the sheets in a workbook.

Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Protect Password:="my password here"
Next ws

but i need to allow users the aboloty to change the format options of any
cells even if they are locked.

any help is greatly appreciated.

thanks!