Instead of True and False try xlSheetVisible and xlSheetHidden.