Hi

Can anyone tell me the best way to automate the saving of a file as read only and to protect the worksheet so that cells cannot be edited or copied.

At the moment I am using the following code:

VB Code:
  1. ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
  2.     ActiveSheet.EnableSelection = xlNoSelection
  3.     Range("B7").Select
  4.     ActiveWorkbook.SaveAs Filename:= _
  5.         "C:\Documents and Settings\Administrator\My Documents\Book2.xls", FileFormat _
  6.         :=xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:= _
  7.         False, CreateBackup:=False
  8.     ActiveWorkbook.Close

But when you reopen the workbook the cells cannot be edited but the dis-'EnableSelection' setting seems to have been reset and users are able to select cells again.!!!!??

Has anyone got any suggestions please?


Many thanks

Pobo