Results 1 to 3 of 3

Thread: Volatile Function To Update Or Refresh Only Once

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    2
    Rep Power
    0

    Lightbulb Volatile Function To Update Or Refresh Only Once

    Good Day,

    If somebody can please assist, and point me in the right direction. I am using the Now() to get the current date and time, I then format the date and time to a string, and use it to create a unique reference for the record.

    The problem comes in when the user saves the file, and opens it again it updated the time and date causing the reference to change.

    Is there anybody that can point me in the right direction to sort this problem.

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    If you are using macros to create the unique reference, you could use macro to populate the cell with current datetime value and then use it as unique reference. If you do not want to use macros, there is a work around, but you must understand that this is an application level workaround, which means that it could affect other workbooks that are open.

    The NOW function is volatile in nature. That's why it calculates everytime the file is saved or reopened. To overcome this issue, try this..

    Enable Iteration in your application (this is the work around I was suggesting)

    And use this formula in A1

    =IF(A1=0,NOW(),A1)
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    2
    Rep Power
    0
    Thanks you, I tried the Enable Iteration, but as this sheet will be distributed to various users, and as its a setting on the excel, not the sheet it does cause a problem.So its back to the drawing board. Was thinking of create a macro that saves the data to a seperate file, which then does not have all the macros and formulas.

Similar Threads

  1. UDF (user defined function) replacement for Excel's DATEDIF function
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 21
    Last Post: 03-07-2015, 09:47 PM
  2. Syntax Error In SQL Update Query Statement
    By ashu1990 in forum Access Help
    Replies: 3
    Last Post: 06-11-2013, 11:48 AM
  3. How to Update Daily Log In Another Sheet
    By Rajesh Kr Joshi in forum Excel Help
    Replies: 6
    Last Post: 04-06-2013, 01:47 PM
  4. Combobox VBA update value worksheet
    By Tony in forum Excel Help
    Replies: 4
    Last Post: 10-28-2012, 12:28 AM
  5. Update data from closed workbook with sumif formula
    By leopaulc in forum Excel Help
    Replies: 4
    Last Post: 11-02-2011, 02:58 AM

Posting Permissions

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