PC Review


Reply
Thread Tools Rate Thread

background shading

 
 
Pammy
Guest
Posts: n/a
 
      8th Feb 2008
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 With Quote
 
 
 
 
Stefan Blom
Guest
Posts: n/a
 
      20th Feb 2008
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Background Shading for Layers gk Microsoft Frontpage 2 30th May 2009 02:07 AM
Excel Background Shading =?Utf-8?B?U21va2V5TW8=?= Microsoft Excel Misc 6 25th Jul 2007 08:23 PM
How do I remove background shading =?Utf-8?B?VGhlIEF1ZGl0b3I=?= Microsoft Word Document Management 2 10th Jun 2007 03:20 PM
background shading on excel frank stone Microsoft Excel Misc 0 2nd Sep 2004 01:45 PM
Re: Background shading Steve Easton Microsoft Frontpage 0 28th Jul 2003 04:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:57 AM.