jadams0173
Technical User
- Feb 18, 2005
- 1,210
I've used some code from johnwm in thread222-589129 some time ago to help me make the table. From that I've figured out how to change the "header row" background color. Now I'm trying to change the "header row" font to bold but I'm having diffieculty. Can someone help. Here is the how I change the color of row 1 for each column.
The remmed out line is the last thing I've tried. I also tried to reocord a macro but that didn't help much. Recording a macro in word doesn't seem to work like recording one in Excel. Thanks for the help!!
Code:
'This will change the color of the header row in the table
With MyRange.Tables.ITEM(1)
For g = 1 To .Columns.Count
[blue]' .Cell(1, g).Select.Font.Bold = wdToggle[/blue]
.Cell(1, g).Shading.BackgroundPatternColor = wdColorYellow
Next g
End With
The remmed out line is the last thing I've tried. I also tried to reocord a macro but that didn't help much. Recording a macro in word doesn't seem to work like recording one in Excel. Thanks for the help!!