Hi, Andrew.
Thanks again for your help and advice. Extremely valuable and much appreciated.
On the good side: It looks like in all of the files the programming text is always written in Gray (50%)
On the bad one: I tried running the Macro at work but get an error message:
Run-time error ‘5224’:
This is not a valid section
The debugging window identifies this line of code:
aRng.ContentControls.Add (wdContentControlGroup)
My VBA knowledge is rudimentary at best and cannot see what is creating this issue. I'll do some searching on that.
(Yesterday I got the same error message and, on the fly and in my personal computer (Office 2016), I tried changing “wdColorGray50” to “wdColorGray”. The Macro ran then but I didn't get any effect from it —as expected, I suppose.)
Best regards.
|