View Single Post
 
Old 09-17-2021, 12:52 AM
Shelley Lou Shelley Lou is offline Windows 10 Office 2016
Competent Performer
 
Join Date: Dec 2020
Posts: 170
Shelley Lou is on a distinguished road
Default VBA Formatting Fields within parentheses

Hi Andrew, many thanks for your reply. The documents themselves come from external clients so they are not in-house templates unfortunately.

Your second macro when run debugs as per the image below. It does remove the bold but doesn't change them to italics.

I went back to trying the original code on one particular document and it debugs as per the image in my previous post and changes the cross ref digits to italics which is incorrect, only the cross ref headings in brackets should be in italics. So I changed the \w to \r and that put the cross ref digits back to how they should be but still didn't change the headings in brackets to italics. Hope that helps.

debug.PNG
Reply With Quote