View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Proteting against a button press

You could use the sheet activate event to disable the buttons or hide them
(check the protection status of the sheet)


You could have each button's macro check the state of the sheet and jump out
without doing anything if it is protected.

If you need more help, specify where the buttons are from; control toolbox
toolbar or forms toolbar.

--
Regards,
Tom Ogilvy



"John Baker" wrote in message
...
Hi:

I have a spreadsheet containing buttons which activate macros. I want to

protect one
sheet in the workbook so that no one can write on it, and no one can

activate the buttons
without a password. When I protect sheet, I find that while the cells are

protected the
button can be activated.

Can someone tell me how to set the BUTTONS so that they cant be pressed

and activate the
macros.

Thanks a lot

JOhn Baker