Solved

How to access the VBA callstack

Posted on 2010-11-17
3
816 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
3 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now