Can I write a VBE so that (for example)

If Rows 10:20 are hidden,
then hide Row 9

Does anyone know how I can do this?