Firstly, you don't need that second IF statement. The target cell will either be a 0 value or not....therefore you just need the one IF - ELSE:
If range("Sheet2!C9").value = 0 then
rows("10:11").entirerow.hidden = true
else ' ie, cell C9 doesn't equal 0.
rows("10:11").entirerow.hidden = false
end if
to add other cells / rows to this, simply copy the code you're using and change the cell / row reference. eg:
If range("Sheet2!C9").value = 0 then
rows("10:11").entirerow.hidden = true
else
rows("10:11").entirerow.hidden = false
end if
if range("Sheet2!G26").value = 0 then
rows("30:31").entirerow.hidden = true
else
rows("30:31").entirerow.hidden = false
end if
Bookmarks