setting system date and time using VBA

前端 未结 1 1437
长情又很酷
长情又很酷 2021-01-21 10:26

VBA for Office2007 seems to give the possibility to set system date and time with:

date = variable and time = variable

however, if I tr

相关标签:
1条回答
  • 2021-01-21 10:51

    Use DateSerial and TimeSerial. For example:

    Date = DateSerial(2015, 11, 4)   'For Date changing
    
    Time = TimeSerial(12, 10, 22)    'For Time changing
    

    ...or you can try to use ShellExecute and Date.

    0 讨论(0)
提交回复
热议问题