Paul,
Try something like
Worksheets("Sheet1").Unprotect password:="whatever"
' your code here
Worksheets("Sheet1").Protect password:="whatever"
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
"paul d" wrote in message
...
Is it possible to unprotect a sheet using a macro then
manipulate data in the sheet and then repassword protect in the
same macro