+ Reply to Thread
Results 1 to 3 of 3

delete modules of code

Hybrid View

khalid79m delete modules of code 11-22-2007, 09:31 AM
dominicb Good afternoon khalid79m ... 11-22-2007, 10:52 AM
khalid79m Thanks 02-21-2008, 10:58 AM
  1. #1
    Forum Contributor
    Join Date
    12-16-2006
    Posts
    349

    delete modules of code

    how can i delete a module in vba, using a vba script.

    so when i run "filereducer" (this gets rid of everything that file will no longer use) i have 2 modules of code ...that i want to delete, one is called ssrOne and ssrTwo

    Can anyone help ?

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon khalid79m

    It certainly is possible to use a macro to delete macros - however a macro cannot be used to delete itself leaving nothing. As a consequence your workbook will always have to have the macro deleting code in it.

    If you want to pursue this, then make this link your first stop : it looks quite in depth at using macros to control the VBE :
    http://www.cpearson.com/excel/vbe.aspx

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    12-16-2006
    Posts
    349

    Thanks

    Proved to be very useful . Thanks Mate

+ 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