Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unprotect via prompt


Hi all,

have a protected sheet that a user may need to amend. I therefore nee
a click event that will prompt for a password and unprotect the shee
so they can enter info. ANother click event to reprotect the sheet.

Thanks in advance all!!!!

--
gavme
-----------------------------------------------------------------------
gavmer's Profile: http://www.excelforum.com/member.php...nfo&userid=666
View this thread: http://www.excelforum.com/showthread.php?threadid=26268

  #2   Report Post  
Posted to microsoft.public.excel.programming
rog rog is offline
external usenet poster
 
Posts: 39
Default Unprotect via prompt

Hi

Add a couple of buttons to the sheet, and then use the
following code :

Private Sub CommandButton1_Click()

ActiveSheet.Unprotect InputBox("Enter password to
unprotect sheet")

End Sub

Private Sub CommandButton2_Click()

ActiveSheet.Protect InputBox("Enter password to
protect sheet")


End Sub

Rgds

Rog

-----Original Message-----

Hi all,

have a protected sheet that a user may need to amend. I

therefore need
a click event that will prompt for a password and

unprotect the sheet
so they can enter info. ANother click event to reprotect

the sheet.

Thanks in advance all!!!!!


--
gavmer
----------------------------------------------------------

--------------
gavmer's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=6662
View this thread:

http://www.excelforum.com/showthread...hreadid=262682

.

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
save prompt for user exit, but no save prompt for batch import? lpj Excel Discussion (Misc queries) 1 February 25th 06 02:08 AM
Unprotect Conditional Formatting Excel Discussion (Misc queries) 3 September 5th 05 02:49 PM
The UNPROTECT option Unprotect option inactive Excel Worksheet Functions 3 April 22nd 05 07:23 PM
unprotect worksheet Richard Sanchez Excel Programming 1 July 17th 04 01:26 AM
Protecting Multiple sheets with prompt for password to unprotect pkley Excel Programming 1 January 10th 04 06:46 AM


All times are GMT +1. The time now is 05:36 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"