Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Password Protecting One Cell

Here is the scenario: My group maintains informational spreadsheets for the
business. They are supposed to pull the most recent spreadsheet from our
Sharepoint site and update as appropriate and email them to use to repost.
They update the date on the template when changes are made. As a backup
process we'd like to add 1 protected cell on the spreadsheet where we'd
include an updated date so we'd know that they pulled it from the site sort
of as a version control from our end.
Is there a way to password protect that one cell easily and be able to just
enter the password update the cell and then save the document straight away
without having to reprotect the cell each time?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Password Protecting One Cell

With beforesave event code you could add the date to the cell when they save.

First you would unlock all the cells except the one cell for the date.

Then protect the worksheet with a password.

Enter this code in the Thisworkbook module, adjusting password and cell to suit.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI _
As Boolean, Cancel As Boolean)
With Sheets("Sheet1")
.Unprotect Password:="password"
.Range("G4").Value = Format(Now, "dd/mm/yyyy h:mm:ss")
.Protect Password:="password"
End With
End Sub

You can lock the VBA Project from viewing in VBEditor.

Right-click on project and VBAProject PropertiesProtection

Save.


Gord Dibben MS Excel MVP


On Thu, 11 Jan 2007 09:08:01 -0800, Erinayn
wrote:

Here is the scenario: My group maintains informational spreadsheets for the
business. They are supposed to pull the most recent spreadsheet from our
Sharepoint site and update as appropriate and email them to use to repost.
They update the date on the template when changes are made. As a backup
process we'd like to add 1 protected cell on the spreadsheet where we'd
include an updated date so we'd know that they pulled it from the site sort
of as a version control from our end.
Is there a way to password protect that one cell easily and be able to just
enter the password update the cell and then save the document straight away
without having to reprotect the cell each time?


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
Sumproduct issues SteveDB1 Excel Worksheet Functions 25 June 3rd 09 04:58 PM
Cell References [email protected] Excel Discussion (Misc queries) 2 November 15th 06 11:37 PM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Default cursor/selected cell position after protecting Stilla Excel Worksheet Functions 0 December 8th 05 02:28 PM


All times are GMT +1. The time now is 04:35 PM.

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"