Sub InsertMania()

'Insert row above active cell
ActiveCell.EntireRow.Insert

'Insert row below active cell
ActiveCell.Offset(1).EntireRow.Insert

'Insert column to the left of the active cell
ActiveCell.EntireColumn.Insert

'Insert column to the right of the active cell
ActiveCell.EntireColumn.Offset(0, 1).Insert

End Sub

文章標籤
全站熱搜
創作者介紹
創作者 Kenneth 的頭像
Kenneth

Kenneth的部落格

Kenneth 發表在 痞客邦 留言(0) 人氣(197)