1
我想匹配特定行從一個表到另一個行的高度,這工作,如果我只是刪除所有行與rowlist和做對於我= 1至200,但這需要太長時間。我只想匹配幾行高度,並通過所有介於1和200我的代碼不走低於:通過指定的數組循環?
Dim y As Double
Dim i As Long
Dim rowlist() As Variant
rowlist = Array(3, 5, 23, 30)
For i = LBound(rowlist) To UBound(rowlist)
y = Worksheets("Development").Rows(i).RowHeight
Worksheets("Final").Rows(i).RowHeight = y
Next i
將行(i)替換爲行(rowlist(i))? – Siphor
作品,但不能投票。 – user3737057