buddyB
Member
Hello,
Is it possible before i open an excelsheet to check which language of Excel is installed?
Im opening an excelsheet and read data, if i dont set the language correct the program returns an error.
I use:
Dim oldCI As System.Globalization.CultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture
System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("en-US")
-----------------------
Open Excel
PROGRAM
Close Excel
------------------------
System.Threading.Thread.CurrentThread.CurrentCulture = oldCI
to set the regional settings to English because there is an English version of Excel installed. I want to protect te program, if the installed version of Excel is not English, i want to set the regional settings to that language. How can i do this and is it even possible
Thanks
BuddyB
Is it possible before i open an excelsheet to check which language of Excel is installed?
Im opening an excelsheet and read data, if i dont set the language correct the program returns an error.
I use:
Dim oldCI As System.Globalization.CultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture
System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("en-US")
-----------------------
Open Excel
PROGRAM
Close Excel
------------------------
System.Threading.Thread.CurrentThread.CurrentCulture = oldCI
to set the regional settings to English because there is an English version of Excel installed. I want to protect te program, if the installed version of Excel is not English, i want to set the regional settings to that language. How can i do this and is it even possible
Thanks
BuddyB