View Single Post
 
Old 10-20-2017, 01:12 AM
datech-hh datech-hh is offline Windows 10 Office 2016
Novice
 
Join Date: Oct 2017
Posts: 9
datech-hh is on a distinguished road
Default

Hello Paul,
"you would have to change the Style name in the StyleRef field to overcome "
Thats what im doing at the moment. I wrote a macro that detects and changes the field.code.text.
Problem 1) The user must click on a ribbon button to run the macro. I would Need an Event that detects document stylechanges. Is there any Event in word i could use for that?
Problem 2) All fields should be updated as soon as a styleref has been changed. That takes up to 1 or two minutes in large documents. Thats not feasable. The reason is that my stylerefs to be used eg for Tocs and Indexes. I could live with 2) not updating all fields, instead i would implent a macro that Forces ActiveDocument.Fields.Update by ribbon button click or so.
Thomas
Reply With Quote