View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Hendrik[_2_] Hendrik[_2_] is offline
external usenet poster
 
Posts: 26
Default Delete rows/collums containing certain values with a Macro

Thanks Joel! It works perfectly now.

If you're up for it. There's another thing. I've modified the macro to add
new collumns before and after collum A (with the employee names).

In this new collumn C, I want the macro to enter a formula in C2, for
example "=D2+E2". and I want the macro to drag the formula down so every row
has the formula (the 3th row will have "=D3+E3" etc..).

The problem I can't figure out is, how to drag the formula down so each
employee/row has the formula. Keeping in mind that there might be a different
amount of rows each time.

Also, in the Total row, in collum C has to be a SUM of the above.