View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ElkySS ElkySS is offline
external usenet poster
 
Posts: 14
Default Delete specific range of cells if containing "0"

OK, I am going to try to explain this as well as I can. I have a sheet that
has a lot of data that is copied out of several web pages at work and placed
into Excel below row 40. All of that data gets hidden and all that is left
is a report above row 40 that is pulling specific pieces of what was copied
and doing some conditional formatting. In Every other cell from I5 €“ AG5 are
names of managers at work. The cells that that skipped are hidden so that
they can do some additional calculations for the conditional formatting.
Then in rows 6 €“ 31 are the stats that are being pulled from the data I
mentioned earlier. This report is set up to run for as many as 13 managers
at a time, but may be ran for less if there are not as many involved in the
html reports. All of that works fine from what I can tell€¦ It is a lot of
info€¦ My question is, If I run it for say 9 managers rather than the 13 it
is set up for, the last 4 columns that are showing (as well as the hidden
ones) all have €œ0€s in them since all of the names get pushed left. Is
there a way that I can say something along the lines of €˜Find the first cell
from A5 €“ AG5 that contains a €œ0€ and then Delete the range [said column
containing €œ0€]1 €“ AG31. I can not delete the entire column because it would
cause missing data from what has been copied in below and hidden. I only
want to delete the range (?1 €“ AG31) of cells that do not actually have any
real data in them.