0
這裏是代碼:Excel VBA中複製列的另一列
Public Sub mysub()
Dim colA As Integer, colB As Integer
Dim rowA As Integer, rowB As Integer
colA = 3
colB = 19
rowA = 7
rowB = 7
lastA = Cells(Rows.Count, colA).End(xlUp).Row
For x = rowA To lastA
Data = Cells(x, colA)
Cells(rowB, colB) = Data
rowB = rowB + 1
Next x
End Sub
它做工精細,但它會繼續改寫COLB,我怎麼可能讓它粘貼到另一列? 我想嘗試結束(xlLeft)。列,但不能讓它工作
THX,它的作品!謝謝你的幫助! – user3425118
沒問題。你能接受答案嗎? – Maco