It is not that it doesn't work - it doesn't compile. Please always provide in
your message whatever error information the compiler or Excel has given you.
Where did you get this code from? Go back and have another look. Or check the
help on the Protect method. These items you have the := and commas with are
parameters of a protect call, not individual statements.
The := and comma syntax is only legal in the parameter area of a subroutine or
function call.