Option Explicit
Private Sub Document_New()
Dim strAppName As String
Dim strSection As String
Dim strKey As String
Dim strDefault As String
strAppName = "Luigi ML"
strSection = "Test"
strKey = "Progressivo"
strDefault = "0"
SaveSetting strAppName _
, strSection _
, strKey _
, CLng(GetSetting(strAppName, strSection, strKey, strDefault)) _
+ 1
MsgBox GetSetting(strAppName, strSection, strKey, strDefault) _
, vbInformation Or vbOKOnly _
, strAppName
End Sub