Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Remove the module


hi,

How can I remove a module from another module in existing workbook.
Is it possible or not?

on waiting
dayanand


--
dayanand108
------------------------------------------------------------------------
dayanand108's Profile: http://www.excelforum.com/member.php...o&userid=25464
View this thread: http://www.excelforum.com/showthread...hreadid=470668

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Remove the module

Hi Dayanand,

How can I remove a module from another module in existing workbook.
Is it possible or not?


If you are asking how to delete a module prorammatically, see Chip Pearson's
page on VBE programming at:

http://www.cpearson.com/excel/vbe.htm


--
Regards,
Norman



"dayanand108"
wrote in message
...

hi,

How can I remove a module from another module in existing workbook.
Is it possible or not?

on waiting
dayanand


--
dayanand108
------------------------------------------------------------------------
dayanand108's Profile:
http://www.excelforum.com/member.php...o&userid=25464
View this thread: http://www.excelforum.com/showthread...hreadid=470668



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Remove the module

'----------------------------------------------------------------
Function DeleteModule(moduleName As String)
'----------------------------------------------------------------
Dim vbMod As Object

Set vbMod = ActiveWorkbook.VBProject.VBComponents(moduleName)
ThisWorkbook.VBProject.VBComponents.Remove vbMod

End Function



--
HTH

Bob Phillips

"dayanand108"
wrote in message
...

hi,

How can I remove a module from another module in existing workbook.
Is it possible or not?

on waiting
dayanand


--
dayanand108
------------------------------------------------------------------------
dayanand108's Profile:

http://www.excelforum.com/member.php...o&userid=25464
View this thread: http://www.excelforum.com/showthread...hreadid=470668



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
Remove Protected Macro Code from Excel Module TGV[_2_] Excel Discussion (Misc queries) 4 August 24th 09 04:10 PM
Remove and Import Module Richard Excel Programming 1 September 2nd 05 09:18 AM
Remove active module in a copy Mehrdad Hakimzadeh Excel Programming 1 April 19th 05 08:05 AM
Remove VBA Project module TMR Excel Programming 0 December 11th 03 07:04 PM
Remove VB Module from workbook Nikos Yannacopoulos[_2_] Excel Programming 2 October 3rd 03 02:11 PM


All times are GMT +1. The time now is 08:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"