Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default ActiveSheet.Protect

I have a workbook that needs to be shared across a network, but when shared
the ActiveSheet.Protect / Unprotect command does not appear to work while in
although everything works Ok when in exclusive access.
Is there any way around this with out having to manually turn off 'Share
Workbook', running the macro's and then turning it back on again ?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default ActiveSheet.Protect

Two things that could be the cause of your problems.

1. The cells you wish to protect are not 'locked' - Check this out by
seleceting the cells, going to Format -- Cells -- Protection and making
sure the 'locked' box is ticked.

2. Have you supplied a password with your locking / unlocking command, it
should look like this

ActiveSheet.Unprotect Password:="Password"

HTH

Neil
www.nwarwick.co.uk

"Mike" wrote:

I have a workbook that needs to be shared across a network, but when shared
the ActiveSheet.Protect / Unprotect command does not appear to work while in
although everything works Ok when in exclusive access.
Is there any way around this with out having to manually turn off 'Share
Workbook', running the macro's and then turning it back on again ?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default ActiveSheet.Protect

The workbook contains many worksheets of which all have a variety of locked
and unlocked cells within the sheets as the user is still required to input
various data. All the sheets are password protected in the way suggested.
Everything works just fine until I set the workbook to shared. I need to be
able to hide/show various rows/columns depending on the user and each week it
will create a new worksheet based upon a fix template and delete the oldest
one and change various cell data in the new one to reflect the new/correct
data. Both of these tasks fallover when shared as the workbook does not seem
to be able to unlock the sheets while in shared mode.

"Neil" wrote:

Two things that could be the cause of your problems.

1. The cells you wish to protect are not 'locked' - Check this out by
seleceting the cells, going to Format -- Cells -- Protection and making
sure the 'locked' box is ticked.

2. Have you supplied a password with your locking / unlocking command, it
should look like this

ActiveSheet.Unprotect Password:="Password"

HTH

Neil
www.nwarwick.co.uk

"Mike" wrote:

I have a workbook that needs to be shared across a network, but when shared
the ActiveSheet.Protect / Unprotect command does not appear to work while in
although everything works Ok when in exclusive access.
Is there any way around this with out having to manually turn off 'Share
Workbook', running the macro's and then turning it back on again ?

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
ActiveSheet.Protect Żaczek Excel Programming 1 September 27th 04 12:21 PM
ActiveSheet.Protect UserinterfaceOnly:=true Tim[_14_] Excel Programming 4 August 7th 03 09:06 PM
ActiveSheet Graham[_3_] Excel Programming 0 July 30th 03 09:08 AM
ActiveSheet Ron de Bruin Excel Programming 0 July 29th 03 04:59 PM
ActiveSheet Graham[_3_] Excel Programming 0 July 29th 03 04:47 PM


All times are GMT +1. The time now is 05:21 PM.

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"