Hello Hesham,
Here is an API routine that calls the shutdown dialog.
Public Declare Function SHShutDownDialog _
Lib "shell32.dll" _
Alias "#60" _
(ByVal Display As Long) As Long
To invoke the Shutdown Dialog:
RetVal = SHShutDownDialog(0&)
Sincerely,
Leith Ross
--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile:
http://www.excelforum.com/member.php...o&userid=18465
View this thread:
http://www.excelforum.com/showthread...hreadid=507743