แปะ code ที่เกี่ยวข้องไว้ก่อน
ActiveSheet.UsedRange.Select
MsgBox Selection.Rows.Count
MsgBox Selection.Columns.Count
MsgBox Selection.SpecialCells(xlCellTypeLastCell).Row
MsgBox Selection.SpecialCells(xlCellTypeLastCell).Column
MsgBox ActiveCell.Address
MsgBox Selection.Address
MsgBox ActiveCell.Column
MsgBox ActiveCell.Row
ไว้จะมาดูว่าเอาไปทำอะไรได้บ้าง
No comments:
Post a Comment