I need some VBA code that will look at only specific columns, eg: ValueA11, ValueB11, ValueC11, etc... and transform its data from a single number into a number sequence.
I have about 50 columns I need to do this for, and there are other columns that have similar data that I don't want affected by this.
Eg. the first value in the column ValueA11 = 7, I want the value to be changed into 1 2 3 4 5 6 7. The second value is 4, so it should translate to 1 2 3 4. This sequencing would not go higher then 7. More examples below:
<STYLE type=text/css>
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}
</STYLE>
<TABLE style="WIDTH: 278px; HEIGHT: 234px" class=tableizer-table>
<TBODY><TR class=tableizer-firstrow><TH>ValueA11</TH><TH>ValueA11</TH></TR><TR><TD>7</TD><TD>1 2 3 4 5 6 7</TD></TR><TR><TD>4</TD><TD>1 2 3 4</TD></TR><TR><TD>2</TD><TD>1 2</TD></TR><TR><TD>1</TD><TD>1</TD></TR><TR><TD>3</TD><TD>1 2 3</TD></TR><TR><TD>6</TD><TD>1 2 3 4 5 6</TD></TR><TR><TD>5</TD><TD>1 2 3 4 5</TD></TR>
</TABLE>
I have about 50 columns I need to do this for, and there are other columns that have similar data that I don't want affected by this.
Eg. the first value in the column ValueA11 = 7, I want the value to be changed into 1 2 3 4 5 6 7. The second value is 4, so it should translate to 1 2 3 4. This sequencing would not go higher then 7. More examples below:
<STYLE type=text/css>
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}
</STYLE>
<TABLE style="WIDTH: 278px; HEIGHT: 234px" class=tableizer-table>
<TBODY><TR class=tableizer-firstrow><TH>ValueA11</TH><TH>ValueA11</TH></TR><TR><TD>7</TD><TD>1 2 3 4 5 6 7</TD></TR><TR><TD>4</TD><TD>1 2 3 4</TD></TR><TR><TD>2</TD><TD>1 2</TD></TR><TR><TD>1</TD><TD>1</TD></TR><TR><TD>3</TD><TD>1 2 3</TD></TR><TR><TD>6</TD><TD>1 2 3 4 5 6</TD></TR><TR><TD>5</TD><TD>1 2 3 4 5</TD></TR>
</TABLE>