Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I found the following code (sorry can't remember where now), it work great with one catch, if ThisWorkbook is password protected the routine fails. Dim myFile As String myFile = "CCRFMacro.bas" ThisWorkbook.VBProject.VBComponents("CCRFMacro").E xport (myFile) ActiveWorkbook.VBProject.VBComponents.Import (myFile) Kill myFile The error is "Can't perform operation since the project is projected." I do not want to unprotect the project, so is there another option to copy a mudule from ThisWorkbook to ActiveWorkbook? -- Trefor |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding cells proplem | New Users to Excel | |||
Adding 2 cells proplem | Excel Discussion (Misc queries) | |||
Adding 2 cells proplem | Excel Discussion (Misc queries) | |||
How do I get rid of "Compile error in hidden module" error message | Excel Discussion (Misc queries) | |||
Compile error in hidden module error | Excel Programming |