WYN
Unprotect the sheet, do your stuff then reprotect.
Sub Numberit()
ActiveSheet.Unprotect Password:="justme"
'your code or macro name goes here
ActiveSheet.Protect Password:="justme", DrawingObjects:=True, _
Contents:=True, Scenarios:=True
End Sub
Gord Dibben Excel MVP
On Wed, 16 Feb 2005 15:55:01 -0800, WYN wrote:
good day all,i have a invoice template with a macro set to number them.when i
protect the sheet the macros stops working.any suggestions? thx wyn
|