Solved

How to access the VBA callstack

Posted on 2010-11-17
3
930 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 57

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

749 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