LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Problem with class variable and Personal.xlsb

I have developed a DebugSupport class that replaces using Debug.Print statements for debugging in Excel VBA code development. It gives the option of directing output to Immediate Window or Immediate Window and disk file or disk file only. The disk file is uniquely named and opens/closes as my application runs. This class has a method output_line. So, in my code I replace
Debug.Print "String including Tab() and Spc() "
with
Public dp as New DebugSupport
dp.output_line("String modified to mimic Tab and Spc functionality")

This supports a very useful debugging environment. My problem is with the class variable dp (declared global) and Personal.xlsb. I don't seem to be able to share dp between my app and macros in Personal.xlsb.
My Workbook Personal.xlsb
Main calls Level1macro calls Level2macro

If I open an instance of DebugSupport in Main, dp is unavailable in Level1macro. If I have a class module DebugSupport in both MyWorkbook and Personal then I end up logging to two separate disk files which is not what I want.
 
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
Converting personal.xlsb to personal.xls Walter Briscoe Excel Programming 9 January 5th 16 06:04 PM
PERSONAL.XLSB Joe[_11_] Excel Programming 7 April 15th 10 12:29 AM
UDF in PERSONAL.XLSB Faraz A. Qureshi Excel Programming 4 September 29th 09 02:34 PM
personal.xlsb dhstein Excel Discussion (Misc queries) 2 June 24th 09 11:20 AM


All times are GMT +1. The time now is 04:25 AM.

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"