請問各位大大:假設想在第一列按插入
會新增6列,第一列全部合併,第2 列每2列合併,該如何控制第2列呢??
Private Sub CommandButton3_Click()
If Selection.Row = 1 Then
Selection.EntireColumn.Insert
Selection.EntireColumn.Insert
Selection.EntireColumn.Insert
Selection.EntireColumn.Insert
Selection.EntireColumn.Insert
Selection.EntireColumn.Insert
Selection.Resize(1, 6).Merge
elseIf Selection.Row = 2 Then
Selection.EntireColumn.Insert
Selection.EntireColumn.Insert
Selection.Resize(1, 2).Merge
ElseIf Selection.Row = 3 Then
Selection.EntireColumn.Insert
End If