Debug issue with macros

  • Thread starter Thread starter Jess
  • Start date Start date
J

Jess

I have an xls with a macros to insert the file path into
the footer just prior to printing. However, whenever
someone else tries to do a print preview on that file the
debugger pops up. Here is the macros as it appears in my
xls:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter = ThisWorkbook.FullName
End Sub

Whats the deal?
 
Back
Top