+ Reply to Thread
Results 1 to 3 of 3

VBIDE Challenge #5 - Listing Procedures in VB Project

  1. #1
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    VBIDE Challenge #5 - Listing Procedures in VB Project

    VBIDE - Visual Basic for Applications Extensibility 5.3

    I am intrigued by the idea of writing code that will report on or edit existing code. Unfortunately I am yet to master the use of VBIDE - my skill level on this is currently little-to-none.

    So every so often, I post a new VBIDE challenge hoping that some forum user will solve it for me (either from kindness and/or for the love of the challenge).


    Here's challenge #5.

    I am currently trying to list all procedures in a project (thank you, I know that MZTools already has the ability to do this). I have run into a problem and I want to know how to fix it. See code at bottom of this post.

    When I run the Sub "ListMacrosUsedInTWB", I eventually hit a runtime error 35 (Sub or Function not defined) on the line
    Please Login or Register  to view this content.
    It keeps occurring on ThisWorkbook module on the following property
    Please Login or Register  to view this content.

    Here's my VBIDE module:
    Please Login or Register  to view this content.
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: VBIDE Challenge #5 - Listing Procedures in VB Project

    Finally found the solution through Google. Chip Pearson explains it.

    http://www.pcreview.co.uk/forums/vbe...-t3894267.html

  3. #3
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: VBIDE Challenge #5 - Listing Procedures in VB Project

    I was tweaking the code from Chip Pearson and have made a useful (well to me anyway) improvement to it. It now reports on the Type of Function or Property.

    Code provided below in case anyone needs this. HTH

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBIDE - List all instances of bad GoTo in project
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-09-2014, 06:20 PM
  2. VBIDE :: Custom CommandBarButton
    By KamilZet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2013, 08:30 AM
  3. Dim VBComp As VBIDE.VBComponent
    By Jim Jackson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-14-2006, 04:15 PM
  4. VBIDE.VBComponent
    By michaelberrier in forum Excel General
    Replies: 3
    Last Post: 06-12-2006, 12:55 PM
  5. Programatically Unlocking a Project in the VBIDE
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2006, 06:15 PM

Tags for this Thread

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