WITH oExceletc4.ActiveSheet.PageSetup .LeftFooter = "&[Path]&[File] &[Tab]" .RightFooter = "Page &P of &N" ENDWITHI really do not see how it could be a problem in the code. The code does what it is meant to do, just not sure why that section gets highlighted