Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default 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?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
password protect unhide sheet command jimmill Excel Discussion (Misc queries) 1 February 24th 09 10:08 PM
Protect Sheet Macro jrob54245 Excel Worksheet Functions 2 November 6th 08 09:25 PM
Macro to pull data with criterea for placement on a new sheet Trina Excel Discussion (Misc queries) 7 June 13th 08 11:00 PM
Using macro to un/protect sheet Bonbon Excel Worksheet Functions 2 February 23rd 06 08:14 PM
excel - macro code to open a protected sheet, enter passowrd, and then protect sheet arunjoshi[_5_] Excel Programming 1 May 2nd 04 03:50 PM


All times are GMT +1. The time now is 08:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"