+ Reply to Thread
Results 1 to 4 of 4

Adding Parameter Description to VBA module list

  1. #1
    Registered User
    Join Date
    07-20-2011
    Location
    Missouri, USA
    MS-Off Ver
    Excel 2007
    Posts
    36

    Question Adding Parameter Description to VBA module list

    I am using the code from Microsoft to pull my procedure name in VBA, but I would like to add the function to pull back the parameters also. I cannot figure out what need to be added to it.
    http://msdn.microsoft.com/en-us/libr...ice.11%29.aspx

    Please Login or Register  to view this content.
    Sample output:
    DATAWHSE: openconnection2
    DATAWHSE: GetUser
    DATAWHSE: GetAnalyst
    DATAWHSE: GetDemand
    DATAWHSE: GetQOH
    DATAWHSE: GetOfm

    Sample of Module Code:
    Function GetDemand(Line, Item) As Double

    What I would like to see outputted:
    DATAWHSE: GetDemand ;Line, Item


    Any and all assistance is appreciated.
    Last edited by popfan; 07-20-2012 at 11:01 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485

    Re: Adding Parameter Description to VBA module list

    Please Login or Register  to view this content.

    Outputs:
    Function GetDemand(Line, Item) As Double
    Arg: Line
    Arg: Item

    Private Function m_GetArgs(Text As String) As Variant
    Arg: Text As String

    Sub ListArgs()

    Sub ListCode()
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-20-2011
    Location
    Missouri, USA
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Adding Parameter Description to VBA module list

    Thanks for the the help. One last question though. I have 2 modules that I want to list at the same time if possible any easy way to run both or add a way to select which one will run?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485

    Re: Adding Parameter Description to VBA module list

    Not sure I fully understand your question but changing which module is referenced should allow that.

    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)

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