+ Reply to Thread
Results 1 to 5 of 5

What is lifetime of public variable?

Hybrid View

Guest What is lifetime of public... 02-26-2006, 03:40 AM
Guest Re: What is lifetime of... 02-26-2006, 07:20 AM
Guest Re: What is lifetime of... 02-26-2006, 12:20 PM
Guest RE: What is lifetime of... 02-26-2006, 11:40 AM
Guest Re: What is lifetime of... 02-26-2006, 12:20 PM
  1. #1
    John Wirt
    Guest

    What is lifetime of public variable?

    What is the lifetime of a Public variable?

    Does it hold the variableas long as the Workbook remains open?

    As long as Excel remains open? Suppose the Public vaiable is declared in
    Personal.xls?

    I need a means of making a variable that is a collection of ranges
    "permanent"--that is, the variable lasts as long as the workbook stays open
    at least.

    Thank you.

    John Wirt




  2. #2
    Bob Phillips
    Guest

    Re: What is lifetime of public variable?

    Yes it is there as long as that workbook is open, or something else happens
    that clears it. it can't be as long as Excel is open, as the workbook could
    be closed before Excel and it is defined in the workbook.

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "John Wirt" <mmm@toward.com> wrote in message
    news:eqe3$dqOGHA.2036@TK2MSFTNGP14.phx.gbl...
    > What is the lifetime of a Public variable?
    >
    > Does it hold the variableas long as the Workbook remains open?
    >
    > As long as Excel remains open? Suppose the Public vaiable is declared in
    > Personal.xls?
    >
    > I need a means of making a variable that is a collection of ranges
    > "permanent"--that is, the variable lasts as long as the workbook stays

    open
    > at least.
    >
    > Thank you.
    >
    > John Wirt
    >
    >
    >




  3. #3
    John Wirt
    Guest

    Re: What is lifetime of public variable?

    Thank you, Bob.
    John



  4. #4
    Antonio Elinon
    Guest

    RE: What is lifetime of public variable?

    John,

    I presume this is related to your previous post about ranges and stacks.
    If you store the "collection of ranges" as normal strings then you can save
    them in Personal.xls. See my reply to implementing stacks in Personal.xls,
    in your prev post.

    Regards,
    Antonio Elinon

    "John Wirt" wrote:

    > What is the lifetime of a Public variable?
    >
    > Does it hold the variableas long as the Workbook remains open?
    >
    > As long as Excel remains open? Suppose the Public vaiable is declared in
    > Personal.xls?
    >
    > I need a means of making a variable that is a collection of ranges
    > "permanent"--that is, the variable lasts as long as the workbook stays open
    > at least.
    >
    > Thank you.
    >
    > John Wirt
    >
    >
    >
    >


  5. #5
    John Wirt
    Guest

    Re: What is lifetime of public variable?

    Thank you, Antonio.
    John
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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