Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I would like a macro that deletes All Null Cells in a spreadsheet.
For Example aaa Null 123 bbb 123 Null 123 Would look like aaa 123 bbb 123 123 I would like the Null Cells Delete and everything to come to the left. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
Sub DeleteBlankCells() ActiveSheet.Cells.SpecialCells(xlCellTypeBlanks).S elect Selection.Delete Shift:=xlToLeft Range("A1").Select End Sub Hope this helps, Hutch "GOL" wrote: I would like a macro that deletes All Null Cells in a spreadsheet. For Example aaa Null 123 bbb 123 Null 123 Would look like aaa 123 bbb 123 123 I would like the Null Cells Delete and everything to come to the left. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks
"Tom Hutchins" wrote: Try this: Sub DeleteBlankCells() ActiveSheet.Cells.SpecialCells(xlCellTypeBlanks).S elect Selection.Delete Shift:=xlToLeft Range("A1").Select End Sub Hope this helps, Hutch "GOL" wrote: I would like a macro that deletes All Null Cells in a spreadsheet. For Example aaa Null 123 bbb 123 Null 123 Would look like aaa 123 bbb 123 123 I would like the Null Cells Delete and everything to come to the left. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
protect cells in excel to prevent users from deleting formulae | Excel Discussion (Misc queries) | |||
Deleting and shifting cells and columns | Excel Worksheet Functions | |||
Deleting info from all cells at once | Excel Worksheet Functions | |||
Help adding text values | Excel Worksheet Functions | |||
delete values in several cells without deleting the formulas | Excel Discussion (Misc queries) |