Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: run a macro automatically on excel exit

  1. #1
    New Member
    Join Date
    Mar 2002
    Location
    John
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Is there a way to make Excel run a macro automatically whenever a user quits the program, no matter how they quit the program?

  2. #2
    Guest

    Default

    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    your code here, put in this work book code
    End Sub

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •