How come when I do this in the immediate window I get a runtime error? ?activesheet.hpagebreak.count tia,