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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro crashing Excel

Status
Not open for further replies.

Chrissirhc

Programmer
May 20, 2000
926
GB
I have a macro that runs application.run someFunctionalityUsingSomeAddin

When the focus is on the Excel window, the code runs fine. When the focus is on another application the Excel session running the macro crashes with a window error.

Is there a way to run the macro and have the focus on any window? I'm thinking along the lines of some kind of protection functionality or something like that...

Any ideas???

Thanks in advance,

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top