Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Rick,
Application.DecimalSeparator returns the relevant Windows setting. However, it is an (Excel) application property and would not be recognised, say, by Word VBA. In my previous response I omitted to compliment you on the fact that you actively address potential international issues, so I am happy to rectify that now. --- Regards. Norman "Rick Rothstein (MVP - VB)" wrote in message ... Yeah, a carry-over from my compiled VB days (as was the code also). The help files are not completely clear to me... does the DecimalSeparator property apply to the VBA world as well, or only to the worksheet world? The Format function call I offered returns the Windows decimal separator, period, not Excel's whereas I presume the DecimalSeparator property returns the decimal separator being used on the worksheet (which usually would be the same as Windows, but not necessarily). I know there is a UseSystemSeparators property which can be set to False to force the worksheet to use Windows decimal separator even if Excel's is different; but, again, does this extend into the VBA world as well? Rick "Norman Jones" wrote in message ... Hi Rick, One very small point: ============= [...] In keeping with the non-APIness of this solution, here is what I use to get the system's decimal point. DecimalPointSymbol = Format$(0, ".") [...] ============= Perhaps, alternatively: DecimalPointSymbol = Application.DecimalSeparator --- Regards. Norman |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Default font for pasted text in text boxes - Excel 2007 | Excel Discussion (Misc queries) | |||
text box insert in Excel - text box lines print on second copy | Excel Discussion (Misc queries) | |||
Text not continuing to wrap for large block of text in Excel cell | Charts and Charting in Excel | |||
Excel VBA: Worksheet cell .Text property: 1024 bytes text len limit | Excel Programming | |||
numbers and text in Excel to read as text keeping the leading zer. | Excel Discussion (Misc queries) |