📊 VBA (Excel)
Apply Enable Light Mode (VBA)
Reverts File Explorer and other system surfaces to light mode. Applied via WScript.Shell.RegWrite from VBA.
LightModeRegSet.bas
Attribute VB_Name = "LightModeRegSet"
Option Explicit
Public Sub LightModeRegSet()
Dim wsh As Object
Dim regPath As String
Set wsh = CreateObject("WScript.Shell")
regPath = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme"
wsh.RegWrite regPath, 1, "REG_DWORD"
MsgBox "Enable Light Mode applied." & vbCrLf & regPath, vbInformation
End Sub