VBA code

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

I have a macro in sheet1 that automatically runs every 15
seconds and works on objects in that sheet.

Whenever I make another sheet active, the macro generates
an error because it expects the active sheet to be sheet1.

Is there a way to suspend the macro while another sheet is
active???

Is there a way to keep it operating even though another
sheet is active??

Thanks for any help.
 
Hi Paul

No.
Yes.
Post the code please, it's impossible to suggest anything without it.

HTH. Best wishes Harald
 
Why not insert at the appropriate point
if activesheet.name = "Sheet1" then
....
?


Steve
 

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