我正在尝试创建一个表。如果单元格属性的值与“Available”或“Not”之类的相同,我想合并表格单元格。我想不出如何用jQuery,JavaScript或任何其他语言来做这件事。
我有以下代码:
<html>
<table>
<thead>
<tr>
<th>NO </th>
<th> name </th>
<th> 2018-1-1 </th>
<th> 2018-1-2 </th>
<th> 2018-1-3 </th>
<th> 2018-1-4 </th>
<th> 2018-1-5 </th>
</tr>
</thead>
<tbody>
<tr>
<td> 1 </td>
<td> Mark Tony </td>
<td>Available </td>
<td>Available </td>
<td>Available </td>
<td>Not </td>
<td>Not </td>
</tr>
<tr>
<td> 2 </td>
<td> Susan Tom </td>
<td>Not </td>
<td>Available </td>
<td>Available </td>
<td>Not </td>
<td>Not </td>
</tr>
</tbody>
</table>
</html>
答案 0 :(得分:0)
Sub MergeSameCell()
web: gunicorn gettingstarted.wsgi
结束子
答案 1 :(得分:0)
私人子CommandButton1_Click()
Worksheets("Test_Execution").Rows("1:" & Worksheets("Test_Execution").Rows.Count).Delete
Call Worksheets("Requirement_JIRAs").SliceNDice
Call Worksheets("Test_Execution").vlookupJira
Call Worksheets("Test_Execution").DeleteRowBasedOnCriteria
Call Worksheets("Test_Execution").MergeSameCell
Call Worksheets("Test_Execution").FinalTableFormat
Call Worksheets("Test_JIRAs").StatusReport_TestingTable
结束子