Christian Kolb
Christian Kolb

Reputation: 1388

VSTO - Activate "Track Changes" in an excel workbook with c#

In Excel 2007 you have the button "Track Changes" in the "Review" Ribbon. How can I perform this action through c#?

Upvotes: 2

Views: 2008

Answers (1)

Kiru
Kiru

Reputation: 3565

The following line of code should do

Excel.Application.ActiveWorkbook.HighlightChangesOnScreen = true;

make sure the document has been saved.

Upvotes: 2

Related Questions