Stephen_IV
Well-known Member
- Joined
- Mar 17, 2003
- Messages
- 1,180
- Office Version
- 365
- 2019
- Platform
- Windows
Hi, I am looking for a VBA solution to check to see if every value in the row is the same. I am trying to learn. If the row has a blank cell then the row is not the same. When it finds it please put an x at the end if the row.
<style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC ;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC ;
}
.tableizer-table th {
background-color: #104E8B ;
color: #FFF ;
font-weight: bold;
}
</style>
<table class="tableizer-table">
<thead><tr class="tableizer-firstrow"><th>ID</th><th>2010</th><th>2011</th><th>2012</th><th>2013</th><th> </th></tr></thead><tbody>
<tr><td>111</td><td>190111</td><td>190111</td><td>190111</td><td>190111</td><td>x</td></tr>
<tr><td>222</td><td>190111</td><td> </td><td> </td><td>190111</td><td> </td></tr>
<tr><td>333</td><td>190411</td><td>190411</td><td>190411</td><td>150311</td><td> </td></tr>
<tr><td>444</td><td>190111</td><td> </td><td>190111</td><td>190111</td><td> </td></tr>
<tr><td>555</td><td>191011</td><td>191011</td><td>191011</td><td>191011</td><td>x</td></tr>
</tbody></table>
<style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC ;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC ;
}
.tableizer-table th {
background-color: #104E8B ;
color: #FFF ;
font-weight: bold;
}
</style>
<table class="tableizer-table">
<thead><tr class="tableizer-firstrow"><th>ID</th><th>2010</th><th>2011</th><th>2012</th><th>2013</th><th> </th></tr></thead><tbody>
<tr><td>111</td><td>190111</td><td>190111</td><td>190111</td><td>190111</td><td>x</td></tr>
<tr><td>222</td><td>190111</td><td> </td><td> </td><td>190111</td><td> </td></tr>
<tr><td>333</td><td>190411</td><td>190411</td><td>190411</td><td>150311</td><td> </td></tr>
<tr><td>444</td><td>190111</td><td> </td><td>190111</td><td>190111</td><td> </td></tr>
<tr><td>555</td><td>191011</td><td>191011</td><td>191011</td><td>191011</td><td>x</td></tr>
</tbody></table>