Skip to content

Commit a8d7272

Browse files
authored
Merge pull request #1382 from jkpieterse/patch-3
Update Excel.Name.RefersToLocal.md
2 parents 7d713d9 + 1cf2f43 commit a8d7272

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

api/Excel.Name.RefersToLocal.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,20 @@ For Each nm In ActiveWorkbook.Names
3838
Next
3939
```
4040

41+
## Known issues
4142

43+
This property has a bug. Assigning a localized formula to this property fails. The property expects the same formula syntax as the RefersTo property: US format and list separators. Example:
44+
45+
```vb
46+
Sub Example()
47+
Dim Nm As Name
48+
Set Nm = ThisWorkbook.Names("test")
49+
'If Windows is set to use ; as listseparator, this fails:
50+
Nm.RefersToLocal = "=SUM(Sheet1!$A$1,Sheet1!$A$3)"
51+
'If Windows is set to use ; as listseparator, this works:
52+
Nm.RefersToLocal = "=SUM(Sheet1!$A$1;Sheet1!$A$3)"
53+
End Sub
54+
```
4255

4356

44-
[!include[Support and feedback](~/includes/feedback-boilerplate.md)]
57+
[!include[Support and feedback](~/includes/feedback-boilerplate.md)]

0 commit comments

Comments
 (0)