📊 VBA (Excel)

Apply Disable Snap Assist Suggestions (VBA)

Stops Windows from suggesting other windows to snap next to one you just moved. Applied via WScript.Shell.RegWrite from VBA.

By WindowsScripting.com · 436 B
DisableSnapAssistRegSet.bas
Attribute VB_Name = "DisableSnapAssistRegSet"
Option Explicit

Public Sub DisableSnapAssistRegSet()
    Dim wsh As Object
    Dim regPath As String

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

    wsh.RegWrite regPath, 0, "REG_DWORD"

    MsgBox "Disable Snap Assist Suggestions applied." & vbCrLf & regPath, vbInformation
End Sub