You said Workbook ?
Sub Macro2()
Dim cell As Range, ws As Worksheet
For Each ws In Worksheets
For Each cell In ws.UsedRange
If Not cell.Locked Then cell.ClearContents
Next
Next
End Sub
If this post helps click Yes
---------------
Jacob Skaria
"Jacob Skaria" wrote:
Try
Sub Macro2()
Dim cell As Range
For Each cell In ActiveSheet.UsedRange
If Not cell.Locked Then cell.ClearContents
Next
End Sub
If this post helps click Yes
---------------
Jacob Skaria
"Glenn" wrote:
Hi,
I would like a bit of VB code that when clicked will clear all unprotected
fields within a workbook.
Many thanks, Glenn