Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Unprotect Code Module in Code
Can you protect / unprotect a VBA code module in code? eg
ActiveWorkbook.VBProject.VBComponents("Module1").P roperties("Password") = "test" Thanks |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Unprotect Code Module in Code
You can't protect a single VBComponent. You can protect only the
entire project, and this cannot be done with VBA (unless you resort to the dreaded SendKeys). -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Damien" wrote in message ... Can you protect / unprotect a VBA code module in code? eg ActiveWorkbook.VBProject.VBComponents("Module1").P roperties("Password") = "test" Thanks |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Unprotect Code Module in Code
OK Chip,
have you got any examples of doing that with SendKeys? I could try and work it out but if it's already been done ... "Chip Pearson" wrote: You can't protect a single VBComponent. You can protect only the entire project, and this cannot be done with VBA (unless you resort to the dreaded SendKeys). -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Damien" wrote in message ... Can you protect / unprotect a VBA code module in code? eg ActiveWorkbook.VBProject.VBComponents("Module1").P roperties("Password") = "test" Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Where?Worksheet code module or Worksheet_SelectionChange event han | Excel Worksheet Functions | |||
Help, need to speed up this macro | Excel Discussion (Misc queries) | |||
Need to Improve Code Copying/Pasting Between Workbooks | Excel Discussion (Misc queries) | |||
programming VBE - Deleting All Code From A Module | Excel Discussion (Misc queries) | |||
Make Change Case in Excel a format rather than formula | Excel Worksheet Functions |