Results 1 to 2 of 2

Thread: How do I get a Module Collection

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Location
    Cape Town, South Africa
    Posts
    14

    How do I get a Module Collection

    How can I get a collection of all the modules in my project in order to loop through them and extract the modulenames and populate a listbox with them?
    Bartho Smith
    Email: [email protected]

  2. #2
    Code:
    'psuedo code
    
    Open project.prj for input
    read project.prj into str_in
    
    if instring(str_in, "Module=") then
       open and read module that follows Module=
       look for "Attribute VB_Name =" in the module file
       add the name to the listbox
    end if
    
    close em up
    Matt Bradbury

    An optimist will claim the glass is half full.
    A pessimist that it is half empty.
    I just think the glass is too big.

Posting Permissions

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



Click Here to Expand Forum to Full Width