+ Reply to Thread
Results 1 to 4 of 4

What subroutines are called from a subroutine

  1. #1
    Registered User
    Join Date
    11-04-2014
    Location
    Portugal
    MS-Off Ver
    XL2013/XL365
    Posts
    88

    What subroutines are called from a subroutine

    Good afternoon


    Is it possible to know for each subroutine that exists in a given Module what subroutines // function of the global project are called, within that subroutine?

    If so, how to do it?


    I hope I have been clear in my doubt.

    Thanks

    Jorge Cabral

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: What subroutines are called from a subroutine

    As far as I know, the only way to access the call stack in VBA is through the "View Call Stack" command on the View menu in the VBE. This command is only available when in break/debug mode.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: What subroutines are called from a subroutine

    It can be done using VBE.

    Prerequisite - VBE must be enabled - see March 26, 2012 post by Siddharth Rout: https://stackoverflow.com/questions/...ogrammatically

    Chip Pearson was kind enough to leave us the tools at http://www.cpearson.com/excel/vbe.aspx

    Take a look at Chip's sections on:
    a. Listing All Procedures In A Module
    b. Searching For Text In A Module

    It's a lot of work, but it can be done.

    Enjoy.

    Lewis

  4. #4
    Registered User
    Join Date
    11-04-2014
    Location
    Portugal
    MS-Off Ver
    XL2013/XL365
    Posts
    88

    Re: What subroutines are called from a subroutine

    Hi Lewis

    Thank you very much for your reply.

    The problem, for me, is not about too much work, but knowledge, and mine is very, very basic.
    When I asked here on the forum, I sincerely thought it was a quick answer, because it is a type of tool that helps a lot to see the flow in a program. And for those who are studying a program it is very useful.

    I quickly realized that it is very complicated, and then for me it is much more complicated.

    Let's see if during this very difficult period that we are all going through, someone sets up a little time to develop this routine.

    Thank you very much
    Stay safe, stay home
    Jorge

+ 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] Function is only working correctly the first time it is called in the same subroutine
    By pharmacologist in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2019, 03:15 PM
  2. Determining which subroutine is calling another subroutine?
    By jplank in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2016, 01:05 PM
  3. [SOLVED] subroutine calls to launch exterior subroutines
    By c1802362 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-11-2013, 04:55 PM
  4. [SOLVED] can't debug some subroutines in my project, locked subroutines
    By florin_excel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2012, 01:16 PM
  5. Replies: 3
    Last Post: 01-27-2010, 02:28 PM
  6. [SOLVED] How to make userform disappear while called subroutine is running
    By Cornelia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2006, 05:50 PM
  7. [SOLVED] Referencing a file name within a called subroutine
    By Matt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2005, 04:05 AM

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