I would like the table of contents automatically updates when I change my headlines, is it possible to do?
First time here? Check out the FAQ!
answered 2013-09-24 23:14:08 +0100
You can refresh your table of contents with menu command Tools->Update->Update All.
answered 2013-09-25 00:03:55 +0100
You can use a macro that is triggered by the Save Document event that refreshes all tables and saves the document.
sub Refresh rem UpdateAllIndexes hint from <a href="http://www.oooforum.org/forum/viewtopic.phtml?t=41113">http://www.oooforum.org/forum/viewtopic.phtml?t=41113</a> dim document as object dim dispatcher as object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") dispatcher.executeDispatch(document, ".uno:UpdateAllIndexes", "", 0, Array()) end sub
Assign this macro to the Save event Tools->Customize->Events.
Macro execution must be allowed for the document.
Asked: 2013-09-24 21:02:34 +0100
Seen: 154 times
Last updated: Sep 25 '13