Thank you very much, gmayor. Your solution works perfectly. And I could easily change for another color, replacing wdColorGray with a specific RGB command. Great that such a Forum exists with experts like you!
In fact my tables have identical formatting, except for maybe 10 tables, which are different. Now using your script will change all of them to the same. I can of course change those few tables manually back to their original state, but I wonder if it would be possible to improve the script without too much work to make it go through the document stopping at each table asking me - pretty much like the ordinary Search/Replace box in Word does. The buttons could be:
Find Next: Going to the next table
Replace: Replace the formatting in the current table
Replace Forward: Replace the formatting in all tabels from the cursor's position and forward
Skip: Skipping, while keeping the tables, which have already been changed
I don't know if this task require a lot of code. If so, forget about it. I am already very happy with your current code.
Again thanks a lot for your help!
Erik
|