-1

I have coded a VBA macro that notifies me whenever a new comment has been added to a document using a MsgBox.

I now require that no notification should be in the form of a MsgBox but are displayed in a task pane by clicking on the custom button(Comment Notifier) on the ribbon of word.

Can you suggest me way to do this?

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
Atul Garg
  • 15
  • 2

1 Answers1

0

First of all, you need to migrate your existing VBA solution to the add-in rails. There is no way to create a task pane from VBA. The Walkthrough: Create your first VSTO Add-in for Word article explains how to get started quickly. After adding all event handlers to the add-in you may add a task pane to the add-in project, see How to: Add a custom task pane to an application for more information.

Finally, the Walkthrough: Synchronize a custom task pane with a Ribbon button explains how to automate a task pane by clicking on the ribbon button, so you just need to replace the source code a bit and display a notification on the task pane instead.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45