“Excel VBA Menulis ke Windows Registry” Kode Jawaban

Excel VBA Menulis ke Windows Registry

'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 Baca Nilai Kunci Registry

'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

Jawaban yang mirip dengan “Excel VBA Menulis ke Windows Registry”

Pertanyaan yang mirip dengan “Excel VBA Menulis ke Windows Registry”

Lebih banyak jawaban terkait untuk “Excel VBA Menulis ke Windows Registry” di VBA

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya