By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,979 Members | 943 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,979 IT Pros & Developers. It's quick & easy.

Retrieve time from SERVER

P: n/a
In my VBA code, I have the following:

Dim TimeIn as Date
TimeIn = Now()

' I would like to retrieve time from the Server clock rather than the local
PC clock.
' Any suggestions as to how this can be done?????????
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Thu, 20 Nov 2003 18:21:32 GMT, "Bill Agee" <ws**@mindspring.com>
wrote:
In my VBA code, I have the following:

Dim TimeIn as Date
TimeIn = Now()

' I would like to retrieve time from the Server clock rather than the local
PC clock.
' Any suggestions as to how this can be done?????????

Try this to synch the local pc with another pc:

Shell Environ$("COMSPEC") & " /c Net Time \\yourservername /set /y"

- Jim
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.