Skip to content

fix: ability to save a formula as a string using the cell-based interface#643

Closed
miron1512 wants to merge 1 commit intotheoephraim:mainfrom
miron1512:fix-cell-stringValue
Closed

fix: ability to save a formula as a string using the cell-based interface#643
miron1512 wants to merge 1 commit intotheoephraim:mainfrom
miron1512:fix-cell-stringValue

Conversation

@miron1512
Copy link
Copy Markdown

@miron1512 miron1512 commented Aug 1, 2023

  • add ability to save a formula or any string which starts with = as a string using the cell-based interface

for more details see: #644

@theoephraim theoephraim force-pushed the main branch 5 times, most recently from cf803e0 to 53fe384 Compare May 12, 2024 20:03
@theoephraim theoephraim force-pushed the main branch 3 times, most recently from 2fd9b63 to c1e0285 Compare August 5, 2025 06:19
@theoephraim theoephraim force-pushed the main branch 3 times, most recently from 0b28021 to ea334d8 Compare February 13, 2026 02:03
theoephraim added a commit that referenced this pull request Feb 14, 2026
Previously, setting cell.stringValue to a string starting with "="
threw an error. Now it stores the value as a literal string by
directly setting the valueType to "stringValue", bypassing the
auto-detection in the value setter.

Closes #644, incorporates #643

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@theoephraim
Copy link
Copy Markdown
Owner

sorry this took forever... just getting back to doing some cleanup. Will have this functionality (along with docs and tests) merged shortly.

theoephraim added a commit that referenced this pull request Feb 14, 2026
* fix: allow stringValue setter to accept strings starting with "="

Previously, setting cell.stringValue to a string starting with "="
threw an error. Now it stores the value as a literal string by
directly setting the valueType to "stringValue", bypassing the
auto-detection in the value setter.

Closes #644, incorporates #643

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: strengthen stringValue test to verify value is not computed

Use "=2+2" as test value so we can clearly verify the literal string
is stored (not computed as 4), and check formattedValue matches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants