System32 içinde bulunan bir dosyanın ismi uzantısıyla beraber verildiğinde bu dosyayı açan VBA kodudur.
Option Explicit
Sub System32DosyasiAc(dosya As String)
Dim wScriptShell As Object
Set wScriptShell = CreateObject("WScript.Shell")
wScriptShell.Run "C:\Windows\System32\" & dosya
End Sub
Sub OrnekKullanim()
System32DosyasiAc "cleanmgr.exe"
End Sub