In my project I have activx toggle button. To this button I have this VBA code:
Private Sub ToggleButton1_Click()
Dim xAddress As String
xAddress = "G"
If ToggleButton1.Value Then
Application.ActiveSheet.Columns(xAddress).Hidden = True
ToggleButton1.Caption = "Pokaži Ceno z DDV"
Else
Application.ActiveSheet.Columns(xAddress).Hidden = False
ToggleButton1.Caption = "Skrij Ceno z DDV"
End If
End Sub
On the same page, I have a drop-down menu with which I can choose the language in which I want the content of the page to be displayed.
I managed to edit the page so, that depending on the selected language, the content is in the corresponding language. Only the text on the toggle button is not translated, because I don't know how to write the code so that the caption would change depending on the selection of the drop-down menu.
How should I fix the above code that caption will be translated too.
Private Sub ToggleButton1_Click()
Dim xAddress As String
xAddress = "G"
If ToggleButton1.Value Then
Application.ActiveSheet.Columns(xAddress).Hidden = True
ToggleButton1.Caption = "Pokaži Ceno z DDV"
Else
Application.ActiveSheet.Columns(xAddress).Hidden = False
ToggleButton1.Caption = "Skrij Ceno z DDV"
End If
End Sub
On the same page, I have a drop-down menu with which I can choose the language in which I want the content of the page to be displayed.
I managed to edit the page so, that depending on the selected language, the content is in the corresponding language. Only the text on the toggle button is not translated, because I don't know how to write the code so that the caption would change depending on the selection of the drop-down menu.
How should I fix the above code that caption will be translated too.