I use a web app to produce a survey. It gives me an output in a csv. The check box's output is True or False.
I need to create a VBA macro that looks at the specific columns, my columns change order, and if the column has a True statement it puts a specific number in Column Code1 based on the column that was true.
All of the numbers will need to be concatenated together in the column, each number is seperated by a space. If a column has a False statement, it does not put a number on Code1.
See the table below for an example layout.
ValueA1 if True = 1
ValueB1 if True = 2
ValueC1 if True = 3
ValueD1 if True = 4
ValueE1 if True = 5
ValueF1 if True = 6
ValueG1 if True = 7
False = no number in Code1 column.
<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: 713px; HEIGHT: 175px" class=tableizer-table>
<TBODY><TR class=tableizer-firstrow><TH>ValueA1</TH><TH>ValueB1</TH><TH>ValueC1</TH><TH>ValueD1</TH><TH>ValueE1</TH><TH>ValueF1</TH><TH>ValueG1</TH><TH>Code1</TH></TR><TR><TD>TRUE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>1 4 7</TD></TR><TR><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>3 5 7</TD></TR><TR><TD>TRUE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>1 2 5 </TD></TR><TR><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>TRUE</TD><TD>2 6 7</TD></TR><TR><TD>FALSE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>4 6 </TD></TR>
</TABLE>
Let me say how awesome this forum is! Everyone has been emmensely helpful in helping me with my questions! It is really appreciated!
I need to create a VBA macro that looks at the specific columns, my columns change order, and if the column has a True statement it puts a specific number in Column Code1 based on the column that was true.
All of the numbers will need to be concatenated together in the column, each number is seperated by a space. If a column has a False statement, it does not put a number on Code1.
See the table below for an example layout.
ValueA1 if True = 1
ValueB1 if True = 2
ValueC1 if True = 3
ValueD1 if True = 4
ValueE1 if True = 5
ValueF1 if True = 6
ValueG1 if True = 7
False = no number in Code1 column.
<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: 713px; HEIGHT: 175px" class=tableizer-table>
<TBODY><TR class=tableizer-firstrow><TH>ValueA1</TH><TH>ValueB1</TH><TH>ValueC1</TH><TH>ValueD1</TH><TH>ValueE1</TH><TH>ValueF1</TH><TH>ValueG1</TH><TH>Code1</TH></TR><TR><TD>TRUE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>1 4 7</TD></TR><TR><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>3 5 7</TD></TR><TR><TD>TRUE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>1 2 5 </TD></TR><TR><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>TRUE</TD><TD>2 6 7</TD></TR><TR><TD>FALSE</TD><TD>FALSE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>TRUE</TD><TD>FALSE</TD><TD>4 6 </TD></TR>
</TABLE>
Let me say how awesome this forum is! Everyone has been emmensely helpful in helping me with my questions! It is really appreciated!