📊 VBA (Excel)
Apply Show Hidden Files (VBA)
Makes File Explorer always show hidden files and folders. Applied via WScript.Shell.RegWrite from VBA.
ShowHiddenFilesGlobalRegSet.bas
Attribute VB_Name = "ShowHiddenFilesGlobalRegSet"
Option Explicit
Public Sub ShowHiddenFilesGlobalRegSet()
Dim wsh As Object
Dim regPath As String
Set wsh = CreateObject("WScript.Shell")
regPath = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden"
wsh.RegWrite regPath, 1, "REG_DWORD"
MsgBox "Show Hidden Files applied." & vbCrLf & regPath, vbInformation
End Sub