+ Reply to Thread
Results 1 to 3 of 3

Remove instance variable from User Define Class

  1. #1
    Registered User
    Join Date
    09-30-2012
    Location
    VENEZUELA
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    10

    Remove instance variable from User Define Class

    Evening to everyone,

    I would like to know if there is a way to remove the instance variables (I guess this is the right term) which I use when creating a user define class. Attached you will find the class I am intending to create.
    Libro2.xlsm
    Here's a little fragment:

    CLASS NAME: cFeedType
    Please Login or Register  to view this content.
    My question: is there a way to eliminate variables like sIndx, sName, oRange once I create an object using this class?

    When I do the following in a standard module:

    Please Login or Register  to view this content.
    On debug mode, you still can see sIndx, sName, and oRange as Object Variables.

    Can anyone help me on this one?

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Remove instance variable from User Define Class

    set the variable to nothing?

    Set Variable = Noting

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Remove instance variable from User Define Class

    they are not Objects. why do you want to get rid of them? if you do you will lose all data associated with the class instance you created
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1