Jika Anda ingin menggunakan metode Late Binding maka gantilah kode berikut:
Dim Sh as new Shell32.Shell
Menjadi:
Dim Sh as Object
Set Sh = CreateObject("Shell.Application")
Option Explicit
Sub ShowShutDown()
Dim sh As New Shell32.Shell
sh.ShutdownWindows
Set sh = Nothing
End Sub
'Contoh penggunaan
Private Sub Command1_Click()
Call ShowShutDown
End Sub