I created this macro enabled file in Excel 2016 and show that it passes compatibility checks without warnings down to 2010, 2007 or lower starts to run into issues.
Most users are able to use the file with a Form, several buttons with code behind and a single module.
When run on systems with French and Russian languages (so far) an error is encountered citing: "Execution error '5'. Argument or call of procedure incorrect". (Running Excel 2010)
In the past I had a similar issue with French systems where some VBA code simply would not run and had to find alternative means to accomplish the need.
Is there any resource out there to identify which VBA/Excel functions require "translation" from English to other languages?
The code that is failing is fairly simple, just setting a value for one or more named ranges...but there is a fair bit of more complex code that is not even running yet due to this error...so fear the fun has only just begun.
This code is currently failing (again, runs fine in English, just French & Russian language systems fail):
Most users are able to use the file with a Form, several buttons with code behind and a single module.
When run on systems with French and Russian languages (so far) an error is encountered citing: "Execution error '5'. Argument or call of procedure incorrect". (Running Excel 2010)
In the past I had a similar issue with French systems where some VBA code simply would not run and had to find alternative means to accomplish the need.
Is there any resource out there to identify which VBA/Excel functions require "translation" from English to other languages?
The code that is failing is fairly simple, just setting a value for one or more named ranges...but there is a fair bit of more complex code that is not even running yet due to this error...so fear the fun has only just begun.
This code is currently failing (again, runs fine in English, just French & Russian language systems fail):
Code:
Private Sub cmdApply_Click()Dim WS As Worksheet
Dim strAssessments As String
Application.ScreenUpdating = False
Set WS = Worksheets("AssessmentBuild")
WS.Unprotect (...)
If frmAssessments.chkGeneral = True Then
WS.Range("ShowGeneral").Value = "X"
strAssessments = "General & Pre-Inspection"
Else
WS.Range("ShowGeneral").Value = ""
End If
If frmAssessments.chkSafety = True Then
WS.Range("ShowSafety").Value = "X"
If strAssessments <> "" Then
strAssessments = strAssessments & ", Safety"
Else
strAssessments = "Safety"
End If
Else
WS.Range("ShowSafety").Value = ""
End If
If frmAssessments.chkEquipment = True Then
WS.Range("ShowEquipment").Value = "X"
If strAssessments <> "" Then
strAssessments = strAssessments & ", Equipment & Supplies"
Else
strAssessments = "Equipment & Supplies"
End If
Else
WS.Range("ShowEquipment").Value = ""
End If
...