+ Reply to Thread
Results 1 to 15 of 15

Static date?

  1. #1
    Registered User
    Join Date
    10-20-2015
    Location
    Michigan, USA
    MS-Off Ver
    Office 2016
    Posts
    18

    Static date?

    Is there a way to make a static date that does not change each time I reopen the spreadsheet? I'm basically trying to make a template for an invoice and I want the current date in it when I open it for the first time, but not to change so if I need to go back to it in the future. Thanks for any help in advance!

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Static date?

    Then why not input the date manually?
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    10-20-2015
    Location
    Michigan, USA
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Static date?

    Because I want it to populate itself when I open the document. I can use the TODAY function but it changes the date everytime the spreadsheet is reopened.

  4. #4
    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: Static date?

    If yopu dont want to enter it manually, and you dont want to use TODAY(), the only other option open to you is VBA
    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

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Static date?

    Maybe some VBA,

    Something like

    Please Login or Register  to view this content.
    It will put the date the 1st time the file is opened.. I'v assumed A1 to be the cell where the date is required.

    The Next time the file is opened, A1 wont be blank, and hence the code will not execute..
    Last edited by NeedForExcel; 11-20-2015 at 02:07 AM.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Static date?

    Ctrl+Semicolon won't take much time to enter current date.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  7. #7
    Registered User
    Join Date
    10-20-2015
    Location
    Michigan, USA
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Static date?

    I cant use that because I want to make it autopopulate itself and then lock it so it is uneditable

  8. #8
    Registered User
    Join Date
    10-20-2015
    Location
    Michigan, USA
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Static date?

    @needforexcel, I have no clue how to do vba....little more advanced than I am

  9. #9
    Registered User
    Join Date
    10-20-2015
    Location
    Michigan, USA
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Static date?

    I'm actually surprised there is not an easy way to do this....just sounds like it would be kinda basic

  10. #10
    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: Static date?

    The basic part, is that excel has the means to have a date updated, based on today's date. However, you cannot have it both ways, there is no way to "switch of" that function (other than set calcs to manual, but that is just a temporary fix, it will update/change the next time the file is saved/opened)

    So your options are to enter it manually, or to use VBA to have it entered

  11. #11
    Registered User
    Join Date
    10-20-2015
    Location
    Michigan, USA
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Static date?

    is there a easy, good place to go to learn how to do that seeing as I dont know how to use vba?

  12. #12
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Static date?

    NeedForExcel has already given you all the VBA you need..

  13. #13
    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: Static date?

    VBA is my weak side, and no, there is no "easy" way to learn that, it is basically a programming language.

  14. #14
    Registered User
    Join Date
    10-20-2015
    Location
    Michigan, USA
    MS-Off Ver
    Office 2016
    Posts
    18

    Re: Static date?

    @kyle123 how do I put that into excel?

  15. #15
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Static date?

    In your Excel Workbook, press Alt+F11 or Click on the Developer Tab > Visual Basic.

    If your Developer Tab is not enabled, here is how to do it - http://www.needforexcel.com/#!Enable...7-85EDEE74C7C5

    Double Click on this workbook (The Workbook which you are working on)

    Capture.JPG

    and paste the code there..

    Capture.JPG

+ 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. [SOLVED] Set static date
    By mariur89 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-09-2015, 06:27 AM
  2. Highlight Rows Based on Date Range Using Static Date and Current Date
    By SaraStravers in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-23-2015, 07:38 PM
  3. Static date
    By Pedro1803 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2011, 12:41 PM
  4. Static left hand side column and static header row.. how?
    By glic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2007, 01:45 AM
  5. static date
    By venkateswararao in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2007, 05:49 PM
  6. DATE STATIC
    By Shaggy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-21-2006, 09:20 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