#1   Report Post  
Posted to microsoft.public.word.docmanagement
Pammy Pammy is offline
external usenet poster
 
Posts: 23
Default background shading

Is there a way to copy background shading? I have a table set up with 9
different rows and I have shaded each row with a different color. But I
cannot copy the background format. Is there a way to do this?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default background shading

Helmut Weber has posted this reply:

**********
I couldn't find a way other than to record the source color,
select the target cells afterwards,
and apply the recorded color.

Of course, some vba-knowledge is essential.

Option Explicit
Dim lngColor As Long ' global for module
' -------------------------------
Sub GetColor()
lngColor = Selection.Cells(1).Shading.BackgroundPatternColor
End Sub
' -------------------------------
Sub SetColor()
Selection.Cells.Shading.BackgroundPatternColor = lngColor
End Sub

You may assign the macros to convenient shortcuts.

The value of lngColor might not stay defined forever,
depending on what you do between getcolor and setcolor.
**********

--
Stefan Blom
Microsoft Word MVP


"Pammy" wrote:

Is there a way to copy background shading? I have a table set up with 9
different rows and I have shaded each row with a different color. But I
cannot copy the background format. Is there a way to do this?

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I remove background shading The Auditor Microsoft Word Help 2 June 10th 07 03:20 PM
printing tiled background instead of full page background teacher4 Microsoft Word Help 0 May 18th 07 03:03 PM
Word 2003 table shading removes shading on its own krohlfing Tables 3 January 15th 06 09:48 PM
when adding shading to a cell only words are shading 1KathieM Microsoft Word Help 3 October 7th 05 07:56 PM
Picture as Cell Background (or label background)? Mr B Microsoft Word Help 1 January 13th 05 06:33 PM


All times are GMT +1. The time now is 02:20 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"