+ Reply to Thread
Results 1 to 3 of 3

Remove the module

  1. #1
    Registered User
    Join Date
    07-21-2005
    Posts
    5

    Remove the module

    hi,

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

    on waiting
    dayanand

  2. #2
    Norman Jones
    Guest

    Re: 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" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > 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. #3
    Bob Phillips
    Guest

    Re: 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" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1