+ Reply to Thread
Results 1 to 6 of 6

Saving Variables with a Worksheet

  1. #1
    Registered User
    Join Date
    12-23-2008
    Location
    USA
    Posts
    60

    Saving Variables with a Worksheet

    Is there any way to make a variable that is available again when the sheet is reopened? For example, I do alot of calculations to construct a big vector. I don't want to have to redo those calculations every time the sheet is opened, I'd rather just save the resulting vector and load it each time.

    Is this possible?

    Thanks,

    Dave
    Last edited by daviddoria; 12-26-2008 at 06:09 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Check out the formula in Column B in this example, it may get you an idea.
    EnterStartDate.xls
    Enter a Start date in C1 and all the days remaining in that month will show in column B

  3. #3
    Registered User
    Join Date
    12-23-2008
    Location
    USA
    Posts
    60
    thanks davesexcel - but I was actually more interested in saving the vector than this particular date application. I'll keep that in mind though that you can simply "add" +1 to a date to get the next date.

    Dave

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    You can copy results when the calculation is complete, and paste it as values someplace. Without knowing what you're trying to do, it's hard to be specific.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    12-23-2008
    Location
    USA
    Posts
    60
    the thing is I don't want these values to be visible. I just want a vector to be accessible via from vba functions but not show up in the actual cells. Is that clearer?

    Dave

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Save it to a hidden sheet.

+ 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