📊 VBA (Excel)

Check Align Taskbar Icons Left Registry Value (VBA)

Reads the Align Taskbar Icons Left registry value via WScript.Shell.RegRead and reports it in a message box — no PowerShell or reg.exe needed.

By WindowsScripting.com · 644 B
TaskbarAlignLeftRegCheck.bas
Attribute VB_Name = "TaskbarAlignLeftRegCheck"
Option Explicit

Public Sub TaskbarAlignLeftRegCheck()
    Dim wsh As Object
    Dim regPath As String
    Dim value As Variant

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

    On Error Resume Next
    value = wsh.RegRead(regPath)
    On Error GoTo 0

    If IsEmpty(value) Then
        MsgBox "Value not set:" & vbCrLf & regPath, vbExclamation, "Align Taskbar Icons Left"
    Else
        MsgBox "Align Taskbar Icons Left" & vbCrLf & regPath & " = " & value, vbInformation
    End If
End Sub