Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting a module
Hi
see: http://www.cpearson.com/excel/vbe.htm -- Regards Frank Kabel Frankfurt, Germany Grant Reid wrote: Hi I have a workbook with two modules. Is there any way that I can programatically remove module 2 from a routine invoked from module 1? Hope someone can help? Many Thanks - Grant |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting a module
Hi Grant
Try this Sub test() With ThisWorkbook.VBProject.VBComponents .Remove .Item("Module2") End With End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Grant Reid" wrote in message ... Hi I have a workbook with two modules. Is there any way that I can programatically remove module 2 from a routine invoked from module 1? Hope someone can help? Many Thanks - Grant |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting a module
Hi
I have a workbook with two modules. Is there any way that I can programatically remove module 2 from a routine invoked from module 1? Hope someone can help? Many Thanks - Grant |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting a module
Hi
Many thanks, Ron and Frank, for the help. As usual it was spot on Kind Regards - Grant |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
CLASS MODULE & SIMPLE MODULE | Excel Discussion (Misc queries) | |||
programming VBE - Deleting All Code From A Module | Excel Discussion (Misc queries) | |||
code in module A to not execute a Worksheet_SelectionChange sub of another module | Excel Discussion (Misc queries) | |||
arrays - module to module | Excel Programming | |||
Variable from a sheet module in a class module in XL XP | Excel Programming |