+ Reply to Thread
Results 1 to 3 of 3

Saving an address to be used in next open file

  1. #1
    Registered User
    Join Date
    03-21-2018
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2013
    Posts
    36

    Saving an address to be used in next open file

    I have a file that I compare instances by clicking on a cell to start the calculations(Worksheet_BeforeDoubleClick). I call this cell "ActivatedCell" and put the results in the next 3 columns using offset (x,y) then save the results. What I want to do is, the next time I open the file, clear the 3 columns. Is there a way to save the "ActivatedCell" so that it is available on the next open file?

    Regards,
    Tom

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,935

    Re: Saving an address to be used in next open file

    You'd need to store value external to .bas (code module).

    Simplest method is to store it in an out of way cell.

    Another is to write to external text file (or some other file) and read from it.

    One other option, though I don't like the approach is to store it in registry.

    Personally, I'd just store it in xlveryhidden worksheet.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    03-21-2018
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2013
    Posts
    36

    Re: Saving an address to be used in next open file

    CK76, Thanks I'll try the hidden worksheet.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel won't open my file after saving a screenshot
    By alerodmir in forum Excel General
    Replies: 6
    Last Post: 01-15-2018, 06:15 AM
  2. [SOLVED] Error handling when saving a file as a PDF and file is already open
    By JonathanEngr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2018, 03:11 PM
  3. saving open file and hide tabs
    By Pi* in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2017, 03:33 PM
  4. Saving file to same path as open file
    By Glio in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2007, 04:57 AM
  5. [SOLVED] insert file address to open graphic
    By kbs93726 in forum Excel General
    Replies: 1
    Last Post: 02-28-2006, 02:15 PM
  6. Saving backup file on file open
    By AmyTaylor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2006, 10:48 AM
  7. problem with saving a workbook using VBA with the file is open bef
    By VBA question in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-06-2005, 10:05 PM

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