ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel Macro / VBA to pull up the protect sheet command (https://www.excelbanter.com/excel-programming/380936-excel-macro-vba-pull-up-protect-sheet-command.html)

[email protected]

Excel Macro / VBA to pull up the protect sheet command
 
I'm trying to set up a macro that will pull up the default password box
for "protect sheet" and "unprotect sheet" command (tools-protection),
but I'm unable to macro it, and I'm not very proficient with VBA, can
someone help me out?


[email protected]

Excel Macro / VBA to pull up the protect sheet command
 
NM.. figured it out:

SendKeys "%TPP"

thanks.


wrote:
I'm trying to set up a macro that will pull up the default password box
for "protect sheet" and "unprotect sheet" command (tools-protection),
but I'm unable to macro it, and I'm not very proficient with VBA, can
someone help me out?



NickHK

Excel Macro / VBA to pull up the protect sheet command
 
Show the Excel dialog :
Application.Dialogs(xlDialogProtectDocument).Show

NickHK

wrote in message
oups.com...
NM.. figured it out:

SendKeys "%TPP"

thanks.


wrote:
I'm trying to set up a macro that will pull up the default password box
for "protect sheet" and "unprotect sheet" command (tools-protection),
but I'm unable to macro it, and I'm not very proficient with VBA, can
someone help me out?






All times are GMT +1. The time now is 02:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com