📊 VBA (Excel)

Check Disable Snap Assist Suggestions Registry Value (VBA)

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

By WindowsScripting.com · 661 B
DisableSnapAssistRegCheck.bas
Attribute VB_Name = "DisableSnapAssistRegCheck"
Option Explicit

Public Sub DisableSnapAssistRegCheck()
    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\Advanced\SnapAssist"

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

    If IsEmpty(value) Then
        MsgBox "Value not set:" & vbCrLf & regPath, vbExclamation, "Disable Snap Assist Suggestions"
    Else
        MsgBox "Disable Snap Assist Suggestions" & vbCrLf & regPath & " = " & value, vbInformation
    End If
End Sub