Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi everybody,
I have a range of cells which I'd like to search for the value "0%" (or just 0) and then I'd like to delete all these zero values. The cell range is M17:AF17 All I want is to delete the zero values in that range. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Norbert,
Am Sun, 10 Feb 2019 10:25:06 -0800 (PST) schrieb Norbert: I have a range of cells which I'd like to search for the value "0%" (or just 0) and then I'd like to delete all these zero values. The cell range is M17:AF17 All I want is to delete the zero values in that range. try: Sub DeleteZeros() Dim rngC As Range For Each rngC In Range("M17:AF17") If rngC = 0 Then rngC.ClearContents Next End Sub Regards Claus B. -- Windows10 Office 2016 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi everybody,
I have a range of cells which I'd like to search for the value "0%" (or just 0) and then I'd like to delete all these zero values. The cell range is M17:AF17 All I want is to delete the zero values in that range. Thanks Do you mean you want to hide zero values? Do you know that option canned be turned off (OptionsViewWindowOptions) so cells with zero values appear empty? -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I delete cell formats but not the content... | Excel Discussion (Misc queries) | |||
Delete previous cell content | Excel Worksheet Functions | |||
Cell searching and delete function | Excel Discussion (Misc queries) | |||
Delete cell content | Excel Discussion (Misc queries) | |||
can't delete a cell content in excel | New Users to Excel |