Ok, here's another example that doesn't seem to work and the details surrounding it in the book are sketchie. Thie function is suppose to open Windows TimeDate dialog box. The author sometimes omits declarations and details so I'm not sure why this is not working.
Thanks much,
Trudye
Sub ShowDateTimeCalendarDialog()
'This funciton displays the Date,Time,Calendar Dialog box that
'displays when you dbl click the status bar clock
Dim TaskID As Long
Arg = "rundl132.exe shell32.dll.control_Rundll timedate.cpl"
On Error Resume Next
TaskID = Shell(Arg)
If Err <> 0 Then
MsgBox "Cannot start app"
End If
End Sub
Thanks much,
Trudye
Sub ShowDateTimeCalendarDialog()
'This funciton displays the Date,Time,Calendar Dialog box that
'displays when you dbl click the status bar clock
Dim TaskID As Long
Arg = "rundl132.exe shell32.dll.control_Rundll timedate.cpl"
On Error Resume Next
TaskID = Shell(Arg)
If Err <> 0 Then
MsgBox "Cannot start app"
End If
End Sub