Private Sub 插入欄()
For j = Cells(1, Columns.Count).End(1).Column To 1 Step -1
If Cells(1, j) = "綠色" Then
Range(Columns(j + 1), Columns(j + 3)).Insert Shift:=xlToRight ', CopyOrigin:=xlFormatFromLeftOrAbove
End If
Next
End Sub作者: donod 時間: 2022-11-14 22:42