G Guest Jul 12, 2005 #1 Hi, Is there anyway to stop an Auto_Close macro from running when the file is in read-only mode? Thanks, Jane
Hi, Is there anyway to stop an Auto_Close macro from running when the file is in read-only mode? Thanks, Jane
B Bob Phillips Jul 12, 2005 #2 Change the macro to test exit Sub Auto_Close() If Thisworkbook.Readonly Then Exit Sub Else 'do your stuff End If End Sub -- HTH RP (remove nothere from the email address if mailing direct)
Change the macro to test exit Sub Auto_Close() If Thisworkbook.Readonly Then Exit Sub Else 'do your stuff End If End Sub -- HTH RP (remove nothere from the email address if mailing direct)