divyaquamara
Board Regular
- Joined
- Jun 27, 2011
- Messages
- 67
Hi,
I have a macro that extracts data from a summary sheet and places it several different reporting tempelates (having a fixed format).
There is also the current date which is placed on all the tempelates using a Now() function.
The macro runs well .
But I need to protect all worksheets in the workbook for content and structure so I used the following:
The above code protects all the data that has been extracted from summary sheet but does not protect the time stamp field in all the worksheets.
I need to protect those two cells as well.
How should I proceed.
Thanks in advance.
I have a macro that extracts data from a summary sheet and places it several different reporting tempelates (having a fixed format).
There is also the current date which is placed on all the tempelates using a Now() function.
The macro runs well .
But I need to protect all worksheets in the workbook for content and structure so I used the following:
Code:
For Each ws In ActiveWorkbook.Worksheets
ws.Protect Password:="dm12345", DrawingObjects:=True, Contents:=True, Scenarios:=True
Next ws
I need to protect those two cells as well.
How should I proceed.
Thanks in advance.