Class Variable Will Not Initialise

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kurtjoerg
    New Member
    • Jan 2014
    • 1

    Class Variable Will Not Initialise

    I have complex workbook and want to use a class to manage some of the data rather then using arrays.
    I am testing the class by declaring a class module with the 21 data parameters used in the various forms.

    When I declare a variable in a standard module using
    Dim ThisVar as New ThisClass
    The declaration compiles as do all the processes where I assign a value to to ThisVar.xx

    However the watch window does not find any values nor the ThisVAR VARIABLE.

    Please give me a reason for this and the cure!

    Thanks
    Kurt
  • zmbd
    Recognized Expert Moderator Expert
    • Mar 2012
    • 5501

    #2
    more than likely your object goes out of scope once the code finished.

    If you will provide the details of the module perhaps someone can help.

    Comment

    Working...