Hey there,

I have vb code to set system time . when I run it error popups saying that permission denied. I'm running a code in admin account in windows.
I need to know how I can allow vb code to access time and date settings even if I'm in guest account.
My vb Code-

Private Sub Command1_Click()
Dim a As Integer

a = Text1.Text

Time = DateAdd("n", a, Time)

End Sub

thank you.