Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 188
Default Locals Window - Extracting Contents


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.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Locals Window - Extracting Contents


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.



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam

Alan wrote in message
:


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.





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Locals Window - Extracting Contents

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.

--
Regards,
Tom Ogilvy

"keepITcool" wrote in message
...

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.



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam

Alan wrote in message
:


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.







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Locals Window - Extracting Contents


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.



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam

Tom Ogilvy wrote in message
:

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.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Locals Window - Extracting Contents

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.

--
Regards,
Tom Ogilvy

"keepITcool" wrote in message
...

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.



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam

Tom Ogilvy wrote in message
:

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.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save a desired window size but hv window comeup fullsz by d smjm1982 Excel Discussion (Misc queries) 1 February 15th 08 11:10 AM
View cell contents as a pop-up window (similar to comments window) Oldersox Excel Worksheet Functions 1 February 6th 08 07:09 AM
Docking Project Explorer, Properties window and Code window in VBE jayray Setting up and Configuration of Excel 2 March 27th 07 04:42 PM
The window opens in a smaller window not full sized window. Rachael Excel Discussion (Misc queries) 0 November 7th 06 09:04 PM
How do I undo the Excel, Window Menu, New Window command OLDFANG Excel Discussion (Misc queries) 2 March 17th 06 05:31 PM


All times are GMT +1. The time now is 12:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"