Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default VBA Code to unprotect VBA Module

Hi All,

Further to a recent post can anybody tell me how you unprotect a VBA Project
in an external workbook using VBA code. I do know the password.

All contributions appreciated

Regards

Michael Beckinsale


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBA Code to unprotect VBA Module

This has been answered many times before. Here is a typical response from
Harald Staff

Not possible without a little unreliable SendKeys to simulate actual
keystrokes. Search http://groups.google.com/advanced_group_search for
keywords "unprotect project" in group *excel*



--

HTH

RP
(remove nothere from the email address if mailing direct)


"Michael Beckinsale" wrote in message
...
Hi All,

Further to a recent post can anybody tell me how you unprotect a VBA

Project
in an external workbook using VBA code. I do know the password.

All contributions appreciated

Regards

Michael Beckinsale




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Code to unprotect VBA Module


Good afternoon Michael Beckinsale

I don't believe it can be done directly from VBA, whether you know th
password or not. You could use the SendKeys command as a workaround
but it's a bit clumsy.

HTH

Dominic

--
dominic
-----------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...fo&userid=1893
View this thread: http://www.excelforum.com/showthread.php?threadid=39125

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
Unprotect Code Module in Code Damien Excel Discussion (Misc queries) 2 April 18th 06 03:10 PM
code in module A to not execute a Worksheet_SelectionChange sub of another module Jack Sons Excel Discussion (Misc queries) 4 December 11th 05 11:52 PM
copying vba code to a standard code module 1vagrowr Excel Discussion (Misc queries) 2 November 23rd 05 04:00 PM
Create a newworksheet with VBA code and put VBA code in the new worksheet module ceshelman Excel Programming 4 June 15th 05 04:37 PM
Sheet Code Module: copying code to [email protected][_2_] Excel Programming 2 December 14th 04 01:57 AM


All times are GMT +1. The time now is 03:45 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"