📊 VBA (Excel)

Apply Disable Taskbar Widgets Icon (VBA)

Removes the Widgets icon from the Windows 11 taskbar. Applied via WScript.Shell.RegWrite from VBA.

By WindowsScripting.com · 440 B
DisableTaskbarWidgetsRegSet.bas
Attribute VB_Name = "DisableTaskbarWidgetsRegSet"
Option Explicit

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

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

    wsh.RegWrite regPath, 0, "REG_DWORD"

    MsgBox "Disable Taskbar Widgets Icon applied." & vbCrLf & regPath, vbInformation
End Sub