![]() |
#11
|
|||
|
|||
![]()
This code replaces automatic shading with the page color set in your example document:
Code:
Sub Another_Go() ' Application.ScreenUpdating = False 'If the selection includes tables, error 4605 will be returned. 'Thus an error handler is needed: On Error Resume Next For Each oPara In ActiveDocument.range.Paragraphs oPara.range.Select selection.End = selection.End - 1 selection.Shading.BackgroundPatternColor = -654246042 Next oPara Application.ScreenUpdating = True End Sub |
Tags |
fill, shading |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change Text Colour/Box Shade if CheckBox is marked | cavals07 | Word VBA | 7 | 01-30-2023 11:05 AM |
![]() |
trevorc | Excel | 2 | 06-30-2021 12:27 PM |
Text box fill colour changes when pasted to new file | ParishPete | Publisher | 0 | 06-21-2019 12:47 AM |
Change text colour for content control labels? | Toe | Word | 1 | 01-17-2019 08:45 AM |
How to globally change default "pattern fill" color for all shapes in PP 2013 | tbach | PowerPoint | 1 | 01-31-2014 10:59 AM |