Ian
One way to do it is as follows;
Private Sub Workbook_Open()
If Sheets("Sheet1").Range("A1") = "" Then
Sheets("Sheet1").Range("A1") = Now()
ActiveSheet.Protect password:="Yourpassword"
End If
End Sub
Note: since it protects this sheet and you
may want users to change data you will have to
unprotect the cells that require input.
Ivan
Thanks for the reply however I am not a VBA user. from your suggestion however if you use the Now() function then every time the workbook saved from the template is opened the date will change. What I need is away to enter a date automatically when the read only template is opened and the date then to appear in the workbook saved from the template. This date remains fixed no matter when the workbook is reopened and the cell it appears in to be protected to stop the date from being altered. I hope this explains better what was required. Because of the pass word protection on the work book I cannot use the copy and paste special function.
Ian
Actually the Now() will only enter the date
in this routien as a date value Once so that
it will be date stamped when opened and remain @
this date.
Perhaps someone else could have a solution
without using VBA.
Ivan