Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Modifying Locked Cells... :-)

blc,

Yes is the simple answer to your question. if you password protect a sheet
you can fleetingly unprotect it using code in the following way

1st collect the new value for a cell by using a text box

Sub Button1_Click()
msg = "Enter new value"
response = InputBox(msg)

worksheets("Sheet1").unprotect password:="yourpassword"
worksheets("Sheet1").cells(10,10).text=response
worksheets("Sheet1").protect password:="yourpassword"

End Sub

In this way the sheet is only fleetingly unprotected. Be warned even the
mildest of attacks will crack security like this

Mike


"blc" wrote in message
...
Hello all,

Quick question: Is there any way to lock or protect cells
so users cannot edit/modify their contents *YET* still be
able to "programatically" edit/modify the contents of
those same locked or protected cells???

Any help would be appreciated...

Thank you in advance,

blc



  #2   Report Post  
Posted to microsoft.public.excel.programming
blc blc is offline
external usenet poster
 
Posts: 1
Default Modifying Locked Cells... :-)

Thanks!

blc

-----Original Message-----
blc,

Yes is the simple answer to your question. if you

password protect a sheet
you can fleetingly unprotect it using code in the

following way

1st collect the new value for a cell by using a text box

Sub Button1_Click()
msg = "Enter new value"
response = InputBox(msg)

worksheets("Sheet1").unprotect password:="yourpassword"
worksheets("Sheet1").cells(10,10).text=response
worksheets("Sheet1").protect password:="yourpassword"

End Sub

In this way the sheet is only fleetingly unprotected. Be

warned even the
mildest of attacks will crack security like this

Mike


"blc" wrote in message
...
Hello all,

Quick question: Is there any way to lock or protect

cells
so users cannot edit/modify their contents *YET* still

be
able to "programatically" edit/modify the contents of
those same locked or protected cells???

Any help would be appreciated...

Thank you in advance,

blc



.

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
Locked worksheet & hyperlinks (w/ select locked cells unchecked) dgold82 Excel Discussion (Misc queries) 1 July 10th 09 09:42 PM
Protecting Cells from changing or modifying long formulas Loadmaster Excel Discussion (Misc queries) 2 July 22nd 08 09:34 PM
Modifying multiple cells crash [email protected] Excel Discussion (Misc queries) 0 October 11th 07 02:06 PM
Put comments on a locked spreadsheet even though cells not locked RDP Excel Worksheet Functions 1 September 11th 05 11:59 PM
Modifying UnProtected Cells Gladys Excel Discussion (Misc queries) 3 July 27th 05 02:39 PM


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