Macro's

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, Is there anyway to stop an Auto_Close macro from running when the file is
in read-only mode? Thanks, Jane
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top