How do I get a macro to run everytime I enter a specific worksheet?

Posted on 2006-10-26
Medium Priority
Last Modified: 2010-04-30
Everytime I enter the "Summary" tab, I would like to run a macro that I already have set up.  Can anyone tell me how I can do this using VBA? Thanks!
Question by:tiehaze
1 Comment
LVL 93

Accepted Solution

Patrick Matthews earned 2000 total points
ID: 17813761
Hi tiehaze,

Put this into the sheet module for Summary:

Private Sub Worksheet_Activate()

    'insert code or call to another sub here

End Sub



Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question