Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default protect/unprotect a VBA Project


something like this:


Sub ProtectSht(sht)
sht.Protect Password:=pwd, DrawingObjects:=True, contents:=True
Scenarios:=True
End Sub


Sub UnprotectSht(sht)
sht.Unprotect Password:=pwd
End Sub


Manges

--
mangesh_yada
-----------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...fo&userid=1047
View this thread: http://www.excelforum.com/showthread.php?threadid=37385

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default protect/unprotect a VBA Project


Thank u 4 your reply

i ment is there a vba code to remove protection from the protected vb
project ?

sometimes vba projects are protected, so i am lookinf for a code t
remove protection from the protected vba project ........

the code to remove protection might be placed in a workbook and be use
to remove protection from a protected vba project that exists in
different workbook

--
helmekk

-----------------------------------------------------------------------
helmekki's Profile: http://www.excelforum.com/member.php...nfo&userid=693
View this thread: http://www.excelforum.com/showthread.php?threadid=37385

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default protect/unprotect a VBA Project


any idea yet ????


--
helmekki


------------------------------------------------------------------------
helmekki's Profile: http://www.excelforum.com/member.php...fo&userid=6939
View this thread: http://www.excelforum.com/showthread...hreadid=373852

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default protect/unprotect a VBA Project


Good evening Helmekki

We are all pretty much aware that the protection for worksheets and
structure is a little bit flimsy (to say the least!). However, the
routines used to protect VBA routines and password protected files is a
little bit more robust - but that is not to say it cannot be cracked,
just not by a macro. If you need to open a password protected project
you can buy specialist software to do so, or pay a service where you
e-mail your file to a company and get it back several hours later
unprotected.

It can be done using a hex editor, and if your file is not highly
confidential I would be prepared to remove the password for you. No
charge.

But it CANNOT be done from within Excel.

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=373852

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default protect/unprotect a VBA Project



Ok dominicb, Thank u very much

I uploaded the addin that i would like to remove the password from the
protected project.

pls see the attached addin.

Thank u


+-------------------------------------------------------------------+
|Filename: password.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3426 |
+-------------------------------------------------------------------+

--
helmekki


------------------------------------------------------------------------
helmekki's Profile: http://www.excelforum.com/member.php...fo&userid=6939
View this thread: http://www.excelforum.com/showthread...hreadid=373852



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default protect/unprotect a VBA Project


Hi Hesham

Slight problem in that the program is not a VBA program, but has been
written using VB (similar, but different). VB allows for standalone
applications to be written and compiled modules to be used as excel
add-ins, and compiled modules will look like mumbo jumbo (if you're not
English you won't understand this term, but it means muddled up and
confused!) and would not make sense.

So how can you tell if an add-in is compiled VB or standard VBA (which
is compiled at run time)? Well, if you are prompted for a password, it
is VBA. If the message is "This project is unviewable" it is compiled
code. However, if you want to know how the program does what it does,
have a quick look here for VBA code to do what this add-in does, and a
bit of interesting information about how the password crackers work.

http://www.mcgimpsey.com/excel/removepwords.html

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=373852

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default protect/unprotect a VBA Project


Thank u very much dominic

--
helmekk

-----------------------------------------------------------------------
helmekki's Profile: http://www.excelforum.com/member.php...nfo&userid=693
View this thread: http://www.excelforum.com/showthread.php?threadid=37385

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
Protect, unprotect Pyrite Excel Discussion (Misc queries) 0 August 15th 08 03:18 PM
protect / unprotect VBA project by macro sylvain Excel Discussion (Misc queries) 0 July 31st 06 06:09 PM
Unprotect and protect.... Wilfrid Excel Programming 1 July 28th 04 03:13 AM
Using Send Keys to unprotect and protect VB project Gareth[_3_] Excel Programming 0 February 23rd 04 04:05 PM
Protect\Unprotect VBA project Rohit Thomas Excel Programming 2 August 28th 03 04:16 PM


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

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"