Replace ={Sheet1!$A:$A}
with a named range?
#1532
Closed
jablko
started this conversation in
API Questions
Replies: 2 comments
-
Hey, @jablko, thanks for reaching out. As you observed yourself, it is possible to define a named expression that corresponds to a range: hf.addNamedExpression('myRange', '=Sheet1!$A:$A'); And it seems to be working inside formulas: hf.setCellContents(addr, '=SUM(myRange)'); But for some reason, it returns an error when you try to use it directly in a cell: hf.setCellContents(addr, '=myRange'); // ERROR: 'Cell range not allowed.' It looks like a bug in HyperFormula that we need to examine closely to determine why it works this way. Thank you for reporting it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Let's continue the discussion on this issue here: #1533 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to replace the formula
={Sheet1!$A:$A}
with a named range i.e.=myRange
? Is there a trick I don't yet know?The following:
Prints:
Beta Was this translation helpful? Give feedback.
All reactions