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  

Copy row Properties



 
 
Thread Tools Display Modes
  #1  
Old April 2nd, 2010, 08:18 AM posted to microsoft.public.word.tables
Maanu
external usenet poster
 
Posts: 27
Default Copy row Properties

I have changed the first row properties of a table to make it the table
header. I changed its color to grey and changed font to verdana + bold.

I want to change the first row properties of all other tables(around 200
tables) in the document in the same way. I used paste special functionality
to chage the row properties of all other tables. But nothing happened.

Is there any meachanisms for doing this?

Thanks!
  #2  
Old April 2nd, 2010, 08:49 AM posted to microsoft.public.word.tables
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Copy row Properties

You could use a macro to format the tables

The following will format all the first rows to have a 25% grey background
and Verdana Bold font

Dim oDoc As Document
Dim oTable As Table
Set oDoc = ActiveDocument
On Error Resume Next
For Each oTable In ActiveDocument.Tables
With oTable.Rows(1).Range
.Font.Name = "Verdana"
.Bold = True
.Shading.BackgroundPatternColor = wdColorGray25
End With
Next oTable

This will work provided none of the first rows have vertically merged cells.
Tables that have such merged header cells will be ignored.

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Maanu" wrote in message
...
I have changed the first row properties of a table to make it the table
header. I changed its color to grey and changed font to verdana + bold.

I want to change the first row properties of all other tables(around 200
tables) in the document in the same way. I used paste special
functionality
to chage the row properties of all other tables. But nothing happened.

Is there any meachanisms for doing this?

Thanks!



 




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 PM.


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