With Sheet1
Set A = .[B65536].End(xlUp).Offset(1, 0)
With A.Resize(, 2)
.Value = Array(TextBox1, TextBox2)
.HorizontalAlignment = xlCenter
.Font.Size = 8
End With
End With作者: lifedidi 時間: 2013-4-2 18:04
本帖最後由 lifedidi 於 2013-4-2 18:07 編輯
謝謝大大的指導!
另外,
With Sheet1
ActiveSheet.Unprotect "123" '解鎖
Set a = .[B65536].End(xlUp).Offset(1, 0)
With a.Resize(, 2)
.Value = Array(TextBox1, TextBox2)
.HorizontalAlignment = xlCenter
.Font.Size = 8
End With
[A7] = 1
[A7].DataSeries Rowcol:=xlColumns, Step:=1, Stop:=[B65536].End(3).Row - 1
ActiveSheet.Protect Password:=123 '加鎖