A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
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:-
Sub ChangeClkDate()
Date = DateSerial(2018, 8, 5)
End Sub
and the time with
Sub ChangeClkTime()
Time = TimeSerial(14, 0, 0)
End Sub
Note. Despite being able to do it, I would need a very compelling reason to do so. Fiddling with the system can have effects that may not have been anticipated.