View Single Post
 
Old 08-27-2021, 01:29 PM
laith93 laith93 is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Jul 2021
Posts: 117
laith93 is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Here is your code tidied up a bit. Note that the toggling of field codes makes an assumption that codes were not showing before the macro ran. That is risky so I changed those to explicitly set the value instead of toggling true/false.
Excuse me, Mr. Andrew, I think we have a mistake in our code,
when applying this code directly, only styles of the table caption changed to "CapTbl" style, while styles of the figure caption remain unchanged.

I tried to make a separate macro for each one, but only for tables work fine, while for figure ones do not work at all, so you need to use the F&R box for figures, hence is there any mistake for the figure part in our code?

However, using F&R box works fine for both tables and figures.
Also, you can download "Test" in the attachment to apply on it and explore the problem.
Attached Files
File Type: docm Test.docm (33.9 KB, 8 views)
Reply With Quote