Macro's

J

JaneC

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

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)
 
Top