-
Notifications
You must be signed in to change notification settings - Fork 134
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
How to capture worksheet/cell change events? #130
Comments
@flaminestone Please, take a look |
Hello @lapd-viosoft.This feature is in development and has not been documented yet. |
Hello @flaminestone Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column = 1 Then
ThisRow = Target.Row
If Target.Value > 100 Then
Range("B" & ThisRow).Interior.ColorIndex = 3
Else
Range("B" & ThisRow).Interior.ColorIndex = xlColorIndexNone
End If
End If
End Sub Or with OfficeJs addins, we can do like this // Register change event
Excel.run(function (context) {
var worksheet = context.workbook.worksheets.getItem("Sample");
worksheet.onChanged.add(handleChange);
return context.sync()
.then(function () {
console.log("Event handler successfully registered for onChanged event in the worksheet.");
});
}).catch(errorHandlerFunction);
function handleChange(event)
{
return Excel.run(function(context){
return context.sync()
.then(function() {
console.log("Change type of event: " + event.changeType);
console.log("Address of event: " + event.address);
console.log("Source of event: " + event.source);
});
}).catch(errorHandlerFunction);
}
Can you tell me how to capture this cell change event in plugin/macro or any background thread of editor? I have scenario like:
Thank you. |
It is not available now, this functional is in development. This is example for using some available events |
Hi @flaminestone |
Is it available for now? |
Hi @gamead ! |
Hi,
Thank for the great project.
As we know, Microsoft Excel and OfficeJs addins allow us to listen event when a worksheet and/or a cell changed.
Is there anyway to listen these change events with OnlyOffice via plugin/macro?
Thank you!
The text was updated successfully, but these errors were encountered: