Is there any way to delete all the row elements except the row element in column A and then shift cells up only for the deleted row using VBA coding. Right now I manually select a single row except the row element in column A and then delete using ctrl+- and select shift cells up.
I have also tried this
Worksheets("sheet1").Rows(i).Delete Shift:=xlShiftUp
but it deletes the whole row.