Locals Window - Extracting Contents

  • Thread starter Thread starter Alan
  • Start date Start date
A

Alan

Hi All,

For some time now I have thought it would be useful to be able to pull
the contents of the 'locals' window out into either a worksheet or
some
other form (text file perhaps).

More specifically, where I am not entirely familar with an object, it
would be good to be able to blow out all the sub-branches and see
every property and the current value printed out or something.

Is this possible somehow?

Thanks,

Alan.
 
it IS possible, but VERY complicated.

You'll need Microsoft's TLBINF32.dll
to read the typelibraries and enumerate properties.

Chip Pearson has done some "wrapping" work on it,
but you'll find it's still complex.

http://www.cpearson.com/excel.htm
then look for XLTLI Type Lib utilities.
 
I don't think Chip's functions work with the locals window as requested by
the OP, although perhaps the end result is equivalent - just for possible
clarification.
 
Tom, of course what you say is true,
I sought a way to provide OP with results..

But forgot to mention:

you cant READ the locals window.

it will only show properties when VBE when in BREAK mode.
and running some code on an instance which is in breakmode
would be a nice challenge in itself.
 
Just thought your post, while not intended to be confusing, might be
confusing with respect to the aspect of the question of harvesting from the
locals window. Thanks for the clarification.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top