Hi,
I build a template in multiple languages. I therefore set up a named range "Language" that can be "Fr", "Eng" or "Nl" (those values are not stored in any cell but through a userform when opening the template). All my titles are looking up on this value so everything in the forms changes accordingly.
Now that I want to change sheet names and chart titles with VBA, nothing is happening with my case selection
If I type
I get
in my immediate window
If I use
my sheet changes name perfectly
but if I type
nothing happens. I have tried Case is ="Nl" without success
I build a template in multiple languages. I therefore set up a named range "Language" that can be "Fr", "Eng" or "Nl" (those values are not stored in any cell but through a userform when opening the template). All my titles are looking up on this value so everything in the forms changes accordingly.
Now that I want to change sheet names and chart titles with VBA, nothing is happening with my case selection
If I type
Code:
Debug.Print ActiveWorkbook.Names("Language").Value
Code:
="Nl"
If I use
Code:
[LEFT][COLOR=#222222][FONT=Verdana]ShChart.name="Tabel"[/FONT][/COLOR][/LEFT]
but if I type
Code:
Select Case ActiveWorkbook.Names("Language").Value
Case "Nl"
ShChart.name="Tabel"
End select
nothing happens. I have tried Case is ="Nl" without success
Last edited: