+ Reply to Thread
Results 1 to 6 of 6

Change Date Auto In Excel based on system Date

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Change Date Auto In Excel based on system Date

    Hi,
    i want to make a custom date based on system date

    for example
    i put some Manual Date in sheet1.range("a1") = 20/6/17
    now i want to change Date Auto in sheet1.range("a2") = according to system date System (Not Default date of pc)

    today i added the date manual in sheet1.range("a1") = 20/6/17
    while today's date is 20/7/17 (system date)

    now tomorrow date should be in sheet1.range("a2") = 21/6/17
    while tomorrow system date will be 21/7/17 or changed by user into anything like 21/8/17

    now here is a question if someone will change the date of the system? this one will not affect the date of sheet1.range("a2").... this will update auto after 24 hrs as system date changes...no matter what date is system, if you change system date 20/7/17 into 20/8/17 then after 24 hours this will become 21/8/17 (if system doesn't connect to internet)

    i think this is possible for experts

    thank you
    Last edited by HaroonSid; 07-20-2017 at 04:40 AM.
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Change Date Auto In Excel based on system Date

    according to system date System (Not Default date of pc)
    What does that mean?

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Change Date Auto In Excel based on system Date

    thank you
    its mean i want to change my manual date like pc date changes after 24 hours, not matter what date is..

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,792

    Re: Change Date Auto In Excel based on system Date

    OK, so you use this formula:

    =TODAY()

    Or something specific like:

    =EOMONTH(Today(),1)

    or:

    =EDATE(Today(),1)

    You don't need VBA for this.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    10-15-2013
    Location
    Hawaii
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Change Date Auto In Excel based on system Date

    If I am reading this correctly, you are looking to increment a date without referring to the system clock or internet time.
    Without a frame of reference to base a date shift against, I would not think it possible. However, if you would be able to keep a hidden instance of Excel open (never closes unless you turn off the computer), it could run an On Timer event to increment the date after 24 hours in a specified workbook. You would need to create a class to trap the workbook open event, so when you open another workbook it is visible.

  6. #6
    Registered User
    Join Date
    10-15-2013
    Location
    Hawaii
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Change Date Auto In Excel based on system Date

    @AliGW:
    Today() references the System Date, which the user did not want to use since it may have been manipulated.

+ 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. I want to change my system's date as i have in cell A1
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-27-2016, 01:36 PM
  2. [SOLVED] (Automation Error) How to retrive data between from date to system date using excel VBA
    By Kalpesh93 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2015, 06:50 AM
  3. Reduce Day Count in Excel based on System Time and Date
    By kittu55 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-05-2013, 10:24 AM
  4. Change system date with VBA
    By RedWing in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-31-2011, 11:38 AM
  5. System auto prompt due date when workbook is open
    By cyee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2011, 09:25 PM
  6. Auto Insert System Date & Time
    By Buks in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-24-2009, 07:55 AM
  7. Replies: 3
    Last Post: 07-25-2006, 08:00 AM

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