bobbyexcel
Board Regular
- Joined
- Nov 21, 2019
- Messages
- 88
- Office Version
- 365
- Platform
- Windows
Can you please help me on the below code to Delete Blank Cells and shift cells up.
Tried the below 2 but not working.. I still have blank cells which are not getting deleted.
Columns("F").SpecialCells(xlCellTypeBlanks).Delete shift:=xlUp
With Range("A:J") ' & Lastrow2)
If WorksheetFunction.CountA(.Cells) > 0 Then .SpecialCells(xlCellTypeBlanks).Delete shift:=xlShiftUp
End With
Tried the below 2 but not working.. I still have blank cells which are not getting deleted.
Columns("F").SpecialCells(xlCellTypeBlanks).Delete shift:=xlUp
With Range("A:J") ' & Lastrow2)
If WorksheetFunction.CountA(.Cells) > 0 Then .SpecialCells(xlCellTypeBlanks).Delete shift:=xlShiftUp
End With