View Single Post
 
Old 06-09-2020, 05:04 AM
alex100 alex100 is offline Windows 7 64bit Office 2016
Advanced Beginner
 
Join Date: May 2020
Posts: 79
alex100 is on a distinguished road
Default Can't apply shading to multiple sentences

In a Word document, I have two sentences separated by a carriage return. Basically, they are on two different lines.

In the second sentence, I have one word that has a red shading.

For some reason I don't know, if I select both these sentences and then apply a blue shading (via 'Shading.BackgroundPatternColor'), then this blue shading is not applied to the red shaded word too.

If however, I delete the carriage return and combine the two sentences into one sentence, then the blue shading is indeed applied to the red shaded word as well, making all the text blue.

Basically, I need to use the 'Shading.BackgroundPatternColor' property to change the color of an entire paragraph which has been priorly selected. This paragraph consists of multiple sentences, and the change must be applied to all words, including those that have been shaded before.

Removing the shading before applying the new one did not help at all. Removing the formatting of these two sentences does work, but I need to preserve that, so that's not helpful either.

So, how can I apply the 'Shading.BackgroundPatternColor' property to multiple sentences, please?

Alex
Reply With Quote