“Excel VBA Escreva no Registro do Windows” Respostas de código

Excel VBA Escreva no Registro do Windows

'VBA function to WRITE to the Windows Registry:

Public Sub RegSave(Key$, valType$, Val$)
    With CreateObject("wscript.shell")
        .RegWrite Key, Val, valType
    End With
End Sub

'NB: Always backup the Windows Registry before accessing it!
Excel Hero

Excel VBA Read Registry Key Valor

'VBA function to READ from the Windows Registry:

Public Function RegRead(Key$) As String
    On Error Resume Next
    With CreateObject("wscript.shell")
        RegRead = .RegRead(Key)
    End With
    If Err Then Err.Clear
    On Error GoTo 0
End Function

'NB: Always backup the Windows Registry before accessing it!
Excel Hero

Respostas semelhantes a “Excel VBA Escreva no Registro do Windows”

Perguntas semelhantes a “Excel VBA Escreva no Registro do Windows”

Mais respostas relacionadas para “Excel VBA Escreva no Registro do Windows” em VBA

Procure respostas de código populares por idioma

Procurar outros idiomas de código