📊 VBA (Excel)
Apply Disable Taskbar Chat Icon (VBA)
Removes the Chat/Teams icon from the Windows 11 taskbar. Applied via WScript.Shell.RegWrite from VBA.
DisableChatIconRegSet.bas
Attribute VB_Name = "DisableChatIconRegSet"
Option Explicit
Public Sub DisableChatIconRegSet()
Dim wsh As Object
Dim regPath As String
Set wsh = CreateObject("WScript.Shell")
regPath = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarMn"
wsh.RegWrite regPath, 0, "REG_DWORD"
MsgBox "Disable Taskbar Chat Icon applied." & vbCrLf & regPath, vbInformation
End Sub