Solved

How to access the VBA callstack

Posted on 2010-11-17
3
997 Views
Last Modified: 2013-11-27
How can I access the VBA callstack via code?
I didn't know this was even possible before I read this webpage: http://www.everythingaccess.com/vbwatchdog/callstack.htm
0
Comment
Question by:Milewskp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 34156024
why don't you download the sampledb and see it in action?
0
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 34156185
<<How can I access the VBA callstack via code? >>

  You can't normally, but apparently they've dug into the VBA internals and figured out where the call stack lives in memory.  But there is nothing you on your own can do to read the call stack that I'm aware of.

  You can maintain your own stack by maintaing a collection and then popping things on and off as you enter and exit procedures, but you can't get at the VBA call stack through VBA itself.

JimD.
0
 
LVL 1

Author Closing Comment

by:Milewskp
ID: 34156388
Thanks Jim.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Suggested Courses
Course of the Month4 days, 12 hours left to enroll

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question