📊 VBA (Excel)

Check Disable Explorer Startup Delay Registry Value (VBA)

Reads the Disable Explorer Startup Delay registry value via WScript.Shell.RegRead and reports it in a message box — no PowerShell or reg.exe needed.

By WindowsScripting.com · 672 B
DisableStartupDelayRegCheck.bas
Attribute VB_Name = "DisableStartupDelayRegCheck"
Option Explicit

Public Sub DisableStartupDelayRegCheck()
    Dim wsh As Object
    Dim regPath As String
    Dim value As Variant

    Set wsh = CreateObject("WScript.Shell")
    regPath = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize\StartupDelayInMSec"

    On Error Resume Next
    value = wsh.RegRead(regPath)
    On Error GoTo 0

    If IsEmpty(value) Then
        MsgBox "Value not set:" & vbCrLf & regPath, vbExclamation, "Disable Explorer Startup Delay"
    Else
        MsgBox "Disable Explorer Startup Delay" & vbCrLf & regPath & " = " & value, vbInformation
    End If
End Sub