+ Reply to Thread
Results 1 to 6 of 6

Working with =Today()

  1. #1
    Registered User
    Join Date
    10-06-2014
    Location
    Pawtucket, RI
    MS-Off Ver
    7
    Posts
    2

    Question Working with =Today()

    Hello, Looking for a little help. I set up an excel worksheet that uses the =Today() function as the primary function in several calculations. The worksheet is used by a labeling software. The spreadsheet calculates the lot number and expiration date based on "today's date" which is calculated from the =Today() function. My problem is that =Today() will not change unless the spreadsheet is opened, saved and closed. Is there a way to make the spreadsheet do the calculations without opening and saving the spreadsheet? For example, if I want the label to have today's date on it and the spreadsheet has been opened and saved today then today's date will print on the label. If I run the software tomorrow and I don't open and save the spreadsheet, then it will print yesterday's date on the label.

    Thank you!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Working with =Today()

    How is the software retrieving the values without opening the workbook?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    10-06-2014
    Location
    Pawtucket, RI
    MS-Off Ver
    7
    Posts
    2

    Re: Working with =Today()

    There is a link in the software that connects it to the excel worksheet.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Working with =Today()

    Then you're going to be stuck opening, saving, and closing the workbook before you run the software.

    That could probably be done with a shell script that does both that and runs the software, but I'm not the guy to help.
    Last edited by shg; 10-06-2014 at 06:58 PM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Working with =Today()

    My problem is that =Today() will not change unless the spreadsheet is opened, saved and closed.
    Not completely accurate. You just need to open it (provided it is set to auto-calc), and =TODAY() will update. If you need to work on a closed WB that contains =TODAY(), then yes, the WB will need to be saved
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    03-13-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Working with =Today()

    As an alternative, you can create a VBA macro which opens, saves and closes the workbook (you can also assign path in macro if the path is static). You need to probably click just a button (assign macro to it). I think this will be lot easier than manually opening the excel everyday.

+ 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. Today function is not working in Macro
    By abduljaleel.mca in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2013, 07:04 AM
  2. [SOLVED] Today() not working
    By AngelStarCat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2013, 05:24 PM
  3. Excel 2007 : today()-2 working days, in with other text
    By dancing-shadow in forum Excel General
    Replies: 6
    Last Post: 05-12-2011, 05:05 AM
  4. formula to get date Today-1 (Only working days)
    By Chetan Chauhan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2010, 07:14 AM
  5. Add 4 working days to =Today()
    By piranhagirl in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-23-2005, 05:22 PM

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