Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
Private Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long
Sub GetValue()
Dim section As String
Dim fileName As String
section = "CellColor"
fileName = "C:\Users\s.kawano\Documents\conf.ini"
Call WritePrivateProfileString(section, "R", "255", fileName)
Call WritePrivateProfileString(section, "G", "20", fileName)
Call WritePrivateProfileString(section, "B", "147", fileName)
End Sub