Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Write data to a cell, then make it undeletable/selectable

Is my idea possible?

I have a template that I write the date to when it's opened.
Then I will save it as a regular file.

As soon as the date is placed into the cell, or when the the
file is reopened again, I do not want any user to be
able to select, delete, or otherwise modify the date in the
cell.

Any ideas how I might be able to handle something like that?

TIA!

Christ

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default Write data to a cell, then make it undeletable/selectable

In the Workbook_Open event handler for the workbook, put your code to lock
the date cell. Select the entire worksheet, unlock all other cells, then
select the cell that contains the date and lock that cell. Then protect the
worksheet with a password. This will allow your users to enter data in the
rest of the cells. However, they won't be able to delete rows or columns or
maybe do a lot of other things that they might think that they should be
allowed to do. Make sure to test and understand these other limitations.

If your users are sophisticated enough, however, they could add a new, blank
worksheet to the workbook, copy all of the data and formats to the new
worksheet, and then delete the original worksheet, leaving them with an
unprotected copy of the worksheet that contains the date that you want
locked. They could then change the date, if they wanted to.
--
Regards,
Bill


"Christy " wrote in message
...
Is my idea possible?

I have a template that I write the date to when it's opened.
Then I will save it as a regular file.

As soon as the date is placed into the cell, or when the the
file is reopened again, I do not want any user to be
able to select, delete, or otherwise modify the date in the
cell.

Any ideas how I might be able to handle something like that?

TIA!

Christy


---
Message posted from http://www.ExcelForum.com/



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
Creating a Line Graph with Selectable Data RGoad Charts and Charting in Excel 1 January 15th 10 01:46 PM
Mysterious, undeletable zeros Frustrated Word User[_4_] Excel Discussion (Misc queries) 2 December 4th 08 04:16 PM
How do I add N/A to a selectable cell with an arrow? Patrick Excel Worksheet Functions 1 August 30th 06 12:39 AM
Can I make rows of an excell spreadsheet 'selectable' (on/off)? ralph r Excel Worksheet Functions 3 November 14th 05 04:20 PM
How do I make a line non-selectable? Shinka Excel Discussion (Misc queries) 4 October 5th 05 09:25 PM


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