add error cache

This commit is contained in:
simple321vip
2026-04-20 21:15:59 +08:00
parent 1b851b2224
commit 14682d3504
5 changed files with 46 additions and 16 deletions

View File

@@ -320,6 +320,11 @@ Public Function FormatDateInput(ByVal inputStr As String) As String
End If
End Function
Function ColNumToLetter(colNum As Long) As String
ColNumToLetter = Split(Cells(1, colNum).Address, "$")(1)
Function GetErrorMsg(ByVal errorCode As String, Optional ByVal param As String = "") As String
Dim errorList As Object: Set errorList = GetErrorList()
Dim errorMessage As String
If errorList.Exists(errorCode) Then
errorMessage = Replace(errorList(errorCode)(0), "{0}", param)
End If
GetErrorMsg = errorMessage
End Function