![]() |
|
#1
|
|||
|
|||
|
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 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Replace or apply new header in multiple files
|
Carchee | Word VBA | 42 | 07-10-2024 08:47 AM |
Macro to select multiple sentences that contain a specific word
|
MauiTruss | Word VBA | 7 | 10-03-2018 03:46 PM |
how to apply a calendar to multiple activities
|
ketanco | Project | 1 | 10-15-2014 06:56 AM |
How to apply formatting(color & shading) to specific letters in whole doc. (arabic)
|
loopseye | Word | 3 | 08-05-2013 10:49 PM |
Apply template to multiple documents
|
Oliver Beirne | Word VBA | 2 | 04-24-2012 04:49 AM |