Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unprotect VBAProjects using VBA


I have a few different Excel-documents that I want to update
automatically trough another Excel-document. They all have the
VBAProjects protected and I need to replace several modules in each one
of them. How do I unlock them, I have the correct password.

I have read another thread but I can not make it work.
http://www.excelforum.com/t120946-s

Do anyone know have to make it work?

Thanks.

/Marcus


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
y3 y3 is offline
external usenet poster
 
Posts: 1
Default Unprotect VBAProjects using VBA

you can send you file to me .I will help you to open it,have a good time

"Marcus[Sweden]" дÈëÏûÏ¢ÐÂÎÅ
...

I have a few different Excel-documents that I want to update
automatically trough another Excel-document. They all have the
VBAProjects protected and I need to replace several modules in each one
of them. How do I unlock them, I have the correct password.

I have read another thread but I can not make it work.
http://www.excelforum.com/t120946-s

Do anyone know have to make it work?

Thanks.

/Marcus


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Unprotect VBAProjects using VBA

Sub UnPrtct()
UnprotectVBProject Workbooks("UnProtectProject.xls"), "123"
End Sub

Sub UnprotectVBProject(wb As Workbook, Pwd As String)
Set Application.VBE.ActiveVBProject = wb.VBProject
SendKeys "~" & Pwd & "~"
'keep the leading and trailing ~ characters -- these represent the ENTER
key
End Sub


I have a few different Excel-documents that I want to update
automatically trough another Excel-document. They all have the
VBAProjects protected and I need to replace several modules in each one
of them. How do I unlock them, I have the correct password.

I have read another thread but I can not make it work.
http://www.excelforum.com/t120946-s

Do anyone know have to make it work?

Thanks.

/Marcus


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unprotect VBAProjects using VBA


I cant get this to work. The code should be in the dokument you are
updating from, or? I'm running XP, could that be any problem?

Thanks.

/Marcus


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

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 problem DJohnM Excel Worksheet Functions 2 April 11th 10 09:42 AM
Unprotect workbook Jana Excel Discussion (Misc queries) 0 July 5th 07 04:04 PM
Unprotect groups Ed Davis Excel Worksheet Functions 3 April 22nd 07 06:40 PM
unprotect sheets BC@D Excel Worksheet Functions 1 November 25th 05 02:57 PM
Unprotect Conditional Formatting Excel Discussion (Misc queries) 3 September 5th 05 02:49 PM


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