View Single Post
 
Old 11-23-2018, 11:11 AM
Gilvv Gilvv is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: Oct 2016
Posts: 30
Gilvv is on a distinguished road
Default

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.
Reply With Quote