-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Worksheet OnChanged event does not return details when multiple cells are edited #5347
Comments
@harsh-borad Thanks for raising this issue. @XuanZhouMSFT Can you take a look and reassign if needed? Thanks. |
@ElizabethSamuel-MSFT @XuanZhouMSFT any update on this? Please suggest me any temporary alternative for this !!! |
Hi @harsh-borad, Thanks for reporting this issue. For Worksheet.onChanged event details, we only support for single cell change. You can also reference the document for this API here: Excel.WorksheetChangedEventArgs. We recommend you to upvote or submit a new Tech Community New Ideas item, this will give us visibility of the commonality of it and will help with our prioritization. If we end up working on this issue, we will re-activate as needed. Microsoft 365 Developer Platform - Microsoft Community Hub |
@XuanZhouMSFT |
Close this issue since there is no more action needed. |
Environment
Description
I am using the
Worksheet.OnChanged
event in office.js to capturevalueBefore
andvalueAfter
for cell changes. When I change a single cell, the event provides the details object withchangeType: "RangeEdited"
along with valueBefore and valueAfter.However, when I edit multiple cells at once (e.g., deleting values into a range), the details object is undefined. This makes it impossible to track value changes for multiple-cell edits.
So below I attached the Screenshot of both the differences.
Expected behavior
The
details
object should providevalueBefore
andvalueAfter
for all modified cells, similar to how it works for a single cell.Current behavior
For multiple-cell edits,
details
isundefined
, making it impossible to track the changes.Steps to reproduce
Worksheet.OnChanged
event to capturevalueBefore
andvalueAfter
.details
containsvalueBefore
, andvalueAfter
with its other objects.details
isundefined
.Useful logs
"RangeEdited"
in single Cell"RangeEdited"
in mutiple Cells or RangePoint to be noted
This concern is raised because when we are checking Excel's in built Review -> Show Changes ,we got the its tracked before and after values for the same Range
"CD:C4"
.The text was updated successfully, but these errors were encountered: