View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Berend Botje[_15_] Berend Botje[_15_] is offline
external usenet poster
 
Posts: 1
Default excel97: filtering out the zeros macro

If it needs to delete the zeros, try the following:

dim Col as integer
dim Row as integer

For Col = 1 to 7
row = 1
for row = 1 to 4
if cells(row,col).value =0 then cells(row,col).value = ""
next row
next col

It will search the cells one by one and if the value in the cell i
zero, it empties the cell

--
Message posted from http://www.ExcelForum.com