Any Excel VBA Experts out there?

We have Office 2007 and i have a spreadsheet in excel where we enter income details in various boxes which are then linked to boxes below which lists all the relevant income.  I want rows below to only appear if they actually have a figure in, so if they have a value of 0 then i want that row to be either hidden or have a height of 0.

I've discovered that i cant do this via conditional formatting however i can apparently do it using a VBA script.  Does anyone know how to do such a script?

Many thanks in advance

Comments
There are 15 comments. Login or register to view them.

Hiding empty rows

fisch4billf |

Problems...

Anonymous |

Script in a better format...

Anonymous |

Script reworked

fisch4billf |

Dummy sheet

Anonymous |

Script creation

fisch4billf |

Script

Anonymous |

Try changing to this

ACDWebb |
ACDWebb's picture

I cant get this to run...

Anonymous |

You shouldn't need to run it

ACDWebb |
ACDWebb's picture

Re: Script

fisch4billf |

Re: I cant get this to run

fisch4billf |

WONDERFUL!

Anonymous |

As Bill says

ACDWebb |
ACDWebb's picture

Final change

fisch4billf |