Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default urgent help required.

Can I unprotect any sheet through vba if it is protected with
password.

Please help with code , I need some urgent help on this..

Pleae help me with vba code . sample , I doe's not want any xl addins
file.

Thanks in advance.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default urgent help required.

ActiveSheet.Protect Password:="myPassword", DrawingObjects:=True,
Contents:=True, Scenarios:=True 'Default settings for protection
ActiveSheet.Unprotect Password:="myPassword"

--
HTH,
Barb Reinhardt



"Smart Akhtar" wrote:

Can I unprotect any sheet through vba if it is protected with
password.

Please help with code , I need some urgent help on this..

Pleae help me with vba code . sample , I doe's not want any xl addins
file.

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default urgent help required.

On Apr 19, 3:40*am, Barb Reinhardt
wrote:
* * ActiveSheet.Protect Password:="myPassword", DrawingObjects:=True,
Contents:=True, Scenarios:=True 'Default settings for protection
* * ActiveSheet.Unprotect Password:="myPassword"

--
HTH,
Barb Reinhardt



"Smart Akhtar" wrote:
Can I unprotect any sheet through vba if it is protected with
password.


Please help with code , I need some urgent help on this..


Pleae help me with vba code . sample , I doe's not want any xl addins
file.


Thanks in advance.- Hide quoted text -


- Show quoted text -


if I forgot the password. then how I can unprotect the sheet ?
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
Urgent help required! Gemz Excel Worksheet Functions 2 January 20th 09 12:04 PM
Urgent Formula Help Required Rob Excel Discussion (Misc queries) 11 July 10th 08 03:33 PM
Urgent Help required Krish[_2_] Excel Programming 2 October 11th 07 07:47 PM
Urgent help required! hawkwood Excel Discussion (Misc queries) 3 May 25th 07 10:11 AM
Urgent help required. JonathanW Excel Discussion (Misc queries) 2 May 21st 07 10:42 AM


All times are GMT +1. The time now is 05:13 AM.

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

About Us

"It's about Microsoft Excel"