Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have some code that creates a new worksheet from a name provided by a user.
The code checks the user input for invalid characters before creating the name, eliminating : @ \ / ? * [ ]. The code worked fine running English Excel but when I ran using Japanese Excel I had a problem. In the Japanese environment the user provided a name that contained the yen (ï¿¥) character. My code checked for \ which is the directory path separator in Japanese and displays as the yen symbol. But since the user's name had the actual yen character my code failed to create a valid worksheet name. I could modify my code to explicitly check for the yen character and it would fix the problem. However, yen character is valid in English Excel so I don't want to replace it in that environment. I also can't just check thread locale or regional settings or something similar as English Excel could be running on a Japanese system. My question then, is it possible to programatically determine at runtime which characters are invalid in worksheet names? For example, is there an Excel call that would return a list of invalid characters which I could then removed from any proposed worksheet names? - Drew |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
converting international characters in English in Excel 2003 | Excel Discussion (Misc queries) | |||
Formula to replace invalid filename characters | Excel Worksheet Functions | |||
List of invalid sheet tab characters? | Excel Programming | |||
Removing invalid characters from proposed sheet name | Excel Programming | |||
Invalid characters in Excel | Excel Programming |