EXCEL VBA, inserting blank row and shifting cells

后端 未结 2 1562
隐瞒了意图╮
隐瞒了意图╮ 2021-01-04 16:47

I\'m having trouble entering an entire blank row. I\'m trying to shift Columns A-AD (four columns past Z).

Currently cells A-O has content. Cells O-AD are blank. But

2条回答
  •  情话喂你
    2021-01-04 17:14

    If you want to just shift everything down you can use:

    Rows(1).Insert shift:=xlShiftDown
    

    Similarly to shift everything over:

    Columns(1).Insert shift:=xlShiftRight
    

提交回复
热议问题