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 MinimizeAll()
Dim sh As New Shell32.Shell
sh.MinimizeAll
Set sh = Nothing
End Sub
'Contoh penggunaan
Private Sub Command1_Click()
Call MinimizeAll
End Sub