A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

shading alternate rows



 
 
Thread Tools Display Modes
  #1  
Old November 19th, 2006, 10:11 AM posted to microsoft.public.word.tables
Jackie D
external usenet poster
 
Posts: 85
Default shading alternate rows

Hi

I have a table with four columns and several rows. I want to shade each
alternate row. I am manually shading at the moment. Is there a way I can
speed it up by copying and pasting the shaded rows?
--
Jackie D
  #2  
Old November 19th, 2006, 10:52 AM posted to microsoft.public.word.tables
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default shading alternate rows

Running a macro containing the following code will apply shading to
alternate rows of the table in which the selection is located:

Dim i As Long
Dim atable As Table
Set atable = Selection.Tables(1)
With atable
For i = 2 To .Rows.Count Step 2
.Rows(i).Shading.BackgroundPatternColor = wdColorGray05
Next i
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Jackie D" wrote in message
...
Hi

I have a table with four columns and several rows. I want to shade each
alternate row. I am manually shading at the moment. Is there a way I can
speed it up by copying and pasting the shaded rows?
--
Jackie D



  #3  
Old November 19th, 2006, 12:28 PM posted to microsoft.public.word.tables
Tony Jollans
external usenet poster
 
Posts: 1,297
Default shading alternate rows

It depends a bit on what version of Word you have but take a look at Table
AutoFormat to set up a striped table.

--
Enjoy,
Tony


"Jackie D" wrote in message
...
Hi

I have a table with four columns and several rows. I want to shade each
alternate row. I am manually shading at the moment. Is there a way I can
speed it up by copying and pasting the shaded rows?
--
Jackie D


  #4  
Old November 19th, 2006, 02:06 PM posted to microsoft.public.word.tables
Jackie D
external usenet poster
 
Posts: 85
Default shading alternate rows

Thank you, Doug
--
Jackie D


"Doug Robbins - Word MVP" wrote:

Running a macro containing the following code will apply shading to
alternate rows of the table in which the selection is located:

Dim i As Long
Dim atable As Table
Set atable = Selection.Tables(1)
With atable
For i = 2 To .Rows.Count Step 2
.Rows(i).Shading.BackgroundPatternColor = wdColorGray05
Next i
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Jackie D" wrote in message
...
Hi

I have a table with four columns and several rows. I want to shade each
alternate row. I am manually shading at the moment. Is there a way I can
speed it up by copying and pasting the shaded rows?
--
Jackie D




  #5  
Old November 19th, 2006, 02:07 PM posted to microsoft.public.word.tables
Jackie D
external usenet poster
 
Posts: 85
Default shading alternate rows

Thanks you. I have 2003. I'll check out autoformat
--
Jackie D


"Tony Jollans" wrote:

It depends a bit on what version of Word you have but take a look at Table
AutoFormat to set up a striped table.

--
Enjoy,
Tony


"Jackie D" wrote in message
...
Hi

I have a table with four columns and several rows. I want to shade each
alternate row. I am manually shading at the moment. Is there a way I can
speed it up by copying and pasting the shaded rows?
--
Jackie D



  #6  
Old November 19th, 2006, 04:47 PM posted to microsoft.public.word.tables
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default shading alternate rows

In Word 2002 and 2003, you also have access to table styles (the successor
to AutoFormats, they can be user-defined), and row striping is one of the
properties you can define in the style. Although table styles are flaky in
other ways (see http://www.shaunakelly.com/word/tablestyles/index.html),
they can be extremely helpful when you need alternate row shading.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Jackie D" wrote in message
...
Thanks you. I have 2003. I'll check out autoformat
--
Jackie D


"Tony Jollans" wrote:

It depends a bit on what version of Word you have but take a look at

Table
AutoFormat to set up a striped table.

--
Enjoy,
Tony


"Jackie D" wrote in message
...
Hi

I have a table with four columns and several rows. I want to shade

each
alternate row. I am manually shading at the moment. Is there a way I

can
speed it up by copying and pasting the shaded rows?
--
Jackie D




  #7  
Old November 19th, 2006, 05:53 PM posted to microsoft.public.word.tables
Jackie D
external usenet poster
 
Posts: 85
Default shading alternate rows

Thanks Suzanne. I'll have a play!
--
Jackie D


"Suzanne S. Barnhill" wrote:

In Word 2002 and 2003, you also have access to table styles (the successor
to AutoFormats, they can be user-defined), and row striping is one of the
properties you can define in the style. Although table styles are flaky in
other ways (see http://www.shaunakelly.com/word/tablestyles/index.html),
they can be extremely helpful when you need alternate row shading.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Jackie D" wrote in message
...
Thanks you. I have 2003. I'll check out autoformat
--
Jackie D


"Tony Jollans" wrote:

It depends a bit on what version of Word you have but take a look at

Table
AutoFormat to set up a striped table.

--
Enjoy,
Tony


"Jackie D" wrote in message
...
Hi

I have a table with four columns and several rows. I want to shade

each
alternate row. I am manually shading at the moment. Is there a way I

can
speed it up by copying and pasting the shaded rows?
--
Jackie D




 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:04 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.