Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Macro code to proect and unprotect worksheets

Hi,

I have a workbook which can be acces by 10 people. I need to write a
macro which

1. Password protects a specific worksheet. When a user tries to edit
any cell, an input box should appear asking the user to enter the
password. This code will need to work for each worksheet.

2. Upon closing the workbook, the user who unprtected any of the
worksheets needs to be forced to protect them again by entering the
password again.

Is anyone able to provide the relevant code for me?

Thanks,

Nadia
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
Protect and Unprotect all worksheets with macro Joe M. Excel Discussion (Misc queries) 2 January 22nd 10 09:26 PM
Macro to prompt for password to unprotect worksheets Sarah (OGI) Excel Programming 2 March 26th 08 09:58 AM
Code to protect/unprotect a sheet using a macro with password FredH Excel Discussion (Misc queries) 5 October 23rd 07 04:49 PM
Generic protect/unprotect code through buttons and code? StargateFanFromWork[_3_] Excel Programming 4 December 31st 05 12:10 AM
Macro to protect/unprotect worksheets Cameron[_3_] Excel Programming 2 August 6th 03 10:31 PM


All times are GMT +1. The time now is 10:37 AM.

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

About Us

"It's about Microsoft Excel"