Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Sheet protection and cell fomat changes

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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
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!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Sheet protection and cell fomat changes

you rock!

thanks!

"Vergel Adriano" wrote:

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!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Sheet protection and cell fomat changes

What version of Excel are you using? Your code may help me solve my issue.

"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!

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Sheet protection and cell fomat changes

2003

"EbonLinctus" wrote:

What version of Excel are you using? Your code may help me solve my issue.

"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!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cell locking and sheet protection GPO Excel Discussion (Misc queries) 0 July 2nd 08 02:53 AM
Fomat Cell Harold Excel Discussion (Misc queries) 3 May 14th 08 11:07 PM
how do I fomat cell for latitude Charlie Excel Discussion (Misc queries) 1 October 2nd 06 12:50 PM
Cell but not sheet protection HLS Excel Discussion (Misc queries) 2 April 5th 06 12:38 PM
Cell Colors and Sheet Protection cincode5 Excel Discussion (Misc queries) 1 December 3rd 04 10:39 PM


All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"