Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default 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
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
CLASS MODULE & SIMPLE MODULE FARAZ QURESHI Excel Discussion (Misc queries) 1 September 7th 07 09:32 AM
programming VBE - Deleting All Code From A Module pm Excel Discussion (Misc queries) 4 December 31st 05 01:21 AM
code in module A to not execute a Worksheet_SelectionChange sub of another module Jack Sons Excel Discussion (Misc queries) 4 December 11th 05 11:52 PM
arrays - module to module mike Excel Programming 3 February 25th 04 08:56 PM
Variable from a sheet module in a class module in XL XP hglamy[_2_] Excel Programming 2 October 14th 03 05:48 PM


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