Advertisement
laohacdepzai

Add New Line

Feb 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Sub insertRowBelow()
  2. ActiveCell.Offset(1).EntireRow.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromRightOrAbove
  3. ActiveCell.EntireRow.Copy
  4. ActiveCell.Offset(1).EntireRow.PasteSpecial xlPasteFormats
  5. Application.CutCopyMode = False
  6. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement