+ Reply to Thread
Results 1 to 3 of 3

Changing System Date / Time

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Changing System Date / Time

    .
    Is there a means using VBA to change the system Date / Time ? Would you be so kind to provide that code ?

    Any example (very few) I've found on the internet do not work.

    Thank you.


    These are the only examples I've found :



    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by Logit; 08-04-2018 at 11:33 AM.

  2. #2
    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,546

    Re: Changing System Date / Time

    So, which ones have you tried that don’t work for you? It would be sensible to say rather than having to respond several times with, “No, already tried that - doesn’t work”, which will be frustrating for helpers.
    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.

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Changing System Date / Time

    .
    Here is the answer to my question :

    To do this you need to be running Excel as an Administrator or you will get a RunTime Error 70 'Permission denied'

    To run as adminsitrator right click the Excel icon - click 'More' and run as administrator. You can then
    change the system date with:-

    Please Login or Register  to view this content.

+ 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. changing value in cell based on system date and time
    By Saky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2010, 03:56 AM
  2. using Calendar form to store a date changes my system date/time
    By mslynng in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2009, 02:08 PM
  3. Replies: 8
    Last Post: 08-22-2009, 10:03 AM
  4. Negative date values without changing the Date System
    By softuser in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-11-2007, 06:07 PM
  5. [SOLVED] Calendar Control Changing System Date
    By rob_parkhill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2006, 04:35 PM
  6. system time and date
    By kdp145 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2006, 12:03 PM
  7. Display System Date and Time
    By Mikeice in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-23-2005, 09:45 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