It's very simple to delete cell using VBA, we can use Delete method. This is an example how to do it:
Delete cell shift to left:
Sub deleteShiftLeft()
Thisworkbook.Activesheet.Range("B10").Delete Shift:=xlToLeft
End Sub
Delete cell shift up:
Sub deleteShiftUp()
Thisworkbook.Activesheet.Range("B10").Delete Shift:=xlUp
End Sub
Fin.
No comments:
Post a Comment