Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Delete Code
Hi Guys,
How can I delete the code in one workbook from another workbook. Take two workbooks A & B Workbook A has lots of code and modules and is protected with a project password (which I know). I want workbook B to be able to access the vba project in workbook A and delete all vba modules and code. Any ideas? many Thanks L |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Delete Code
If the code is protected then you are hooped. Otherwise you need to get a
reference to the target workbook something like dim wbk as workbook set wbk = workbooks("MyBook.xls") after that you can use the code that is refered to here... http://www.cpearson.com/excel/vbe.htm -- HTH... Jim Thomlinson "Libby" wrote: Hi Guys, How can I delete the code in one workbook from another workbook. Take two workbooks A & B Workbook A has lots of code and modules and is protected with a project password (which I know). I want workbook B to be able to access the vba project in workbook A and delete all vba modules and code. Any ideas? many Thanks L |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Delete code | Excel Discussion (Misc queries) | |||
Code to delete a Line in a another code | Excel Programming | |||
delete code needed | Excel Programming | |||
VBA code delete code but ask for password and unlock VBA protection | Excel Programming | |||
VBA code to delete VBA code in another Workbook | Excel Programming |