Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine how a sub or function is called 1

Status
Not open for further replies.

TRHorn

Technical User
Feb 21, 2010
24
US
Hello all,

I have a sub that is called upon selection change and I want to keep it that way. My problem is that when I run another sub it activates a sheet and highlights all the cells with formulas in them, so my first sub is called because the selection is changed, I do not want this to happen though.

Is there a way to tell my first sub not to run because it was called while my other sub is working?

Hope that was clear.
 
Have a look at the Application.EnableEvents property.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 


Also, try NOT to code using Activate and Select methods. In most cases these methods are not necessary, and in fact, often counter-productive.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top