Data Validation "Input Message"

julie_nickb

New Member
Joined
Sep 13, 2018
Messages
46
Office Version
  1. 365
I am developing a bilingual software in Excel.
I would like to know whether it's possible to change the "Input Message" in Data Validation to display the message in the selected language.
i.e., let's say that variable "Language" is 1 for English, and 2 for French.
If I have two drop-down lists that are Named Ranges, can I select the one that is in the appropriate language?

Thank you.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I think you could accomplish this with dependent drop-downs.
I created two columns of data in D and E; selected those (D2:E6) and made it a name range using the top row.
Then, the drop-down in B3 becomes dependent by using the List, Source where the Source is: =INDIRECT(B2).
You could put those two column references on another sheet.

Book4
ABCDE
1
2Language/LangueFrancaisEnglishFrancais
3EmplacementNordNorthNord
4SouthSud
5EastEst
6WestOuest
Sheet1
Cell Formulas
RangeFormula
A3A3=IF(B2="English","Location","Emplacement")
 
Upvote 0
I think you could accomplish this with dependent drop-downs.
I created two columns of data in D and E; selected those (D2:E6) and made it a name range using the top row.
Then, the drop-down in B3 becomes dependent by using the List, Source where the Source is: =INDIRECT(B2).
You could put those two column references on another sheet.

Book4
ABCDE
1
2Language/LangueFrancaisEnglishFrancais
3EmplacementNordNorthNord
4SouthSud
5EastEst
6WestOuest
Sheet1
Cell Formulas
RangeFormula
A3A3=IF(B2="English","Location","Emplacement")
Thank you so much for your reply.
However, in "Data Validation" there are three tabs: "Settings". "Input Message" and "Error Alert".
This solves the language of the validation drop-down list in "Settings", but not the language of the "Input Message" and "Error Message".
Could you help me with those?
Thanks again.
 
Upvote 0
I think this macro will do it for you based on my original layout. You can put a worksheet change event in the sheet to trigger this rather than having to run it every time.
I suspect there's a shorter macro that will do it...but one of the ace's here will have to suggest it.

Code:
Sub ChangeLanguage()
'replace "B3" with the cell you want to insert the drop down list
With Range("B3").Validation
.Delete
If Range("B2") = "English" Then
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Formula1:="=Sheet1!D3:D6"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = "Select"
.ErrorTitle = ""
.InputMessage = "Select One"
.ErrorMessage = "Try again..."
.ShowInput = True
.ShowError = True
Else
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Formula1:="=Sheet1!E3:E6"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = "Sélectionnez"
.ErrorTitle = ""
.InputMessage = "Sélectionnez-en un"
.ErrorMessage = "Réessayer..."
.ShowInput = True
.ShowError = True
End If
End With
End Sub
 
Upvote 0
I think this macro will do it for you based on my original layout. You can put a worksheet change event in the sheet to trigger this rather than having to run it every time.
I suspect there's a shorter macro that will do it...but one of the ace's here will have to suggest it.

Code:
Sub ChangeLanguage()
'replace "B3" with the cell you want to insert the drop down list
With Range("B3").Validation
.Delete
If Range("B2") = "English" Then
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Formula1:="=Sheet1!D3:D6"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = "Select"
.ErrorTitle = ""
.InputMessage = "Select One"
.ErrorMessage = "Try again..."
.ShowInput = True
.ShowError = True
Else
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Formula1:="=Sheet1!E3:E6"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = "Sélectionnez"
.ErrorTitle = ""
.InputMessage = "Sélectionnez-en un"
.ErrorMessage = "Réessayer..."
.ShowInput = True
.ShowError = True
End If
End With
End Sub
Thanks, I will try it
 
Upvote 0
I think this macro will do it for you based on my original layout. You can put a worksheet change event in the sheet to trigger this rather than having to run it every time.
I suspect there's a shorter macro that will do it...but one of the ace's here will have to suggest it.

Code:
Sub ChangeLanguage()
'replace "B3" with the cell you want to insert the drop down list
With Range("B3").Validation
.Delete
If Range("B2") = "English" Then
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Formula1:="=Sheet1!D3:D6"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = "Select"
.ErrorTitle = ""
.InputMessage = "Select One"
.ErrorMessage = "Try again..."
.ShowInput = True
.ShowError = True
Else
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Formula1:="=Sheet1!E3:E6"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = "Sélectionnez"
.ErrorTitle = ""
.InputMessage = "Sélectionnez-en un"
.ErrorMessage = "Réessayer..."
.ShowInput = True
.ShowError = True
End If
End With
End Sub
Thank you, Kweaver, it works!
 
Upvote 0

Forum statistics

Threads
1,214,972
Messages
6,122,530
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top