Michael151
Board Regular
- Joined
- Sep 20, 2010
- Messages
- 247
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--> Hello all,
Trying to write a macro that will change the color and font of a particular column based on the header in row 1.
For the column labeled New_Deal, anything in this column starting in row 2 will be changed to red and bold font.
Before:
Row1 Col1 New_Deal
Row2 Col2 Col2
Row3 Col3 Col3
Row4 Col4 Col4
Row5 Col5 Col5
After:
Row1 Col1 New_Deal
Row2 Col2 Col2
Row3 Col3 Col3
Row4 Col4 Col4
Row5 Col5 Col5
The “New_Deal” column can be in any column letter, which is why I’d like to use the header in row 1 to identify this column.
Any help is most appreciated – thanks!
Trying to write a macro that will change the color and font of a particular column based on the header in row 1.
For the column labeled New_Deal, anything in this column starting in row 2 will be changed to red and bold font.
Before:
Row1 Col1 New_Deal
Row2 Col2 Col2
Row3 Col3 Col3
Row4 Col4 Col4
Row5 Col5 Col5
After:
Row1 Col1 New_Deal
Row2 Col2 Col2
Row3 Col3 Col3
Row4 Col4 Col4
Row5 Col5 Col5
The “New_Deal” column can be in any column letter, which is why I’d like to use the header in row 1 to identify this column.
Any help is most appreciated – thanks!