Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-09-2020, 05:04 AM
alex100 alex100 is offline Can't apply shading to multiple sentences Windows 7 64bit Can't apply shading to multiple sentences Office 2016
Advanced Beginner
Can't apply shading to multiple sentences
 
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
 



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

Other Forums: Access Forums

All times are GMT -7. The time now is 10:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft