Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Terminate Code Execution in Single Workbook Only

Terminate Code Execution in Single Workbook Only

Terminate Code Execution in Single Workbook Only

I am looking for a way to 'End' all code execution for a single excel workbook only, regardless of excel version, without stoping execution of code from other workbooks / add-ins. The 'End' statement seems to stop execution of all code across all workbooks and add-ins. Any ideas?

If it's not broken, it doesn't have enough parts yet.

RE: Terminate Code Execution in Single Workbook Only

Could you describe situation more precisely? You mean a stack of procedures from different workbooks, event procedure when you open workbook, a code that does not respond due to long loop, other? Excel or com add-in?


RE: Terminate Code Execution in Single Workbook Only

Is each workbook started as a different excel process or from the same excel process? If each workbook is started from a different process (excel /x) then when you stop code execution, it will stop for all the workbooks running under that process. The ones running under a different process will continue.

RE: Terminate Code Execution in Single Workbook Only

Now THAT, xwb, is VERY interesting to me. I can't use that right now, but if things ever settle down enough, I'd like to dig into that very idea for some things here where I work.

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close