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 replace the header in row 1 based on the contents of that column.
In the row 1 header, there is a column marked “System”. I’d like to change this header to the first four letters of the first cell in this column that isn’t blank or contains the word “OPEN.”
For example:
Before:
SYSTEM
OPEN
OPEN
RTSG
After:
RTSG
OPEN
OPEN
RTSG
Another example with a blank cell in row 2:
Before:
SYSTEM
OPEN
RTSF
After:
RTSF
OPEN
RTSF
Any help is most appreciate - thank you!
Trying to write a macro that will replace the header in row 1 based on the contents of that column.
In the row 1 header, there is a column marked “System”. I’d like to change this header to the first four letters of the first cell in this column that isn’t blank or contains the word “OPEN.”
For example:
Before:
SYSTEM
OPEN
OPEN
RTSG
After:
RTSG
OPEN
OPEN
RTSG
Another example with a blank cell in row 2:
Before:
SYSTEM
OPEN
RTSF
After:
RTSF
OPEN
RTSF
Any help is most appreciate - thank you!