Attribute VB_Name = "DisableAnimationsRegSet"
Option Explicit

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

    Set wsh = CreateObject("WScript.Shell")
    regPath = "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics\MinAnimate"

    wsh.RegWrite regPath, "0", "REG_SZ"

    MsgBox "Disable Window Animations applied." & vbCrLf & regPath, vbInformation
End Sub