Reputation: 105
I have a excel add-in and which adds some buttons to Ribbon bar. On click of one of these buttons, I need to apply some validation on value of active cell and show notification to user, if data validation fails. First part of data validation is straight forward, however I am unable to find some class/function in Office/Excel Js API, which can show notification o user. Is there any simple way to show notifications to users?
Upvotes: 0
Views: 251
Reputation: 9684
In addition to using a task pane as @EugeneAstafiev has suggested, you could have the code in the function command branch when the value is invalid and display a dialog with the Office dialog API
Upvotes: 1
Reputation: 49395
The standard action of a ribbon button is to open a task pane. On the task pane you can host any content like a notification and do any extra stuff. You can read more about ribbon commands in Office web add-ins in the Add-in commands for Excel, PowerPoint, and Word article.,
Upvotes: 1