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

Disable Marco from running 1

Status
Not open for further replies.

greg303

Technical User
Oct 28, 2003
24
US
I have a excel workbook(a) that opens other excel workbooks(b), selects a range copies the data and pastes it back in the first workbook(a) then close's workbook(b). The problem is workbook(b) has marcos that run when it opens. Is there a way with workbook(a) to have something like 'application.workbooks.open("workbook(b).xls") marcos=false' so that they dont run and interfer with workbook(a)'s marcos?

Thanks
 
You could put application.enableevents=false right before your workbooks.open call. Just make sure to set it back to true right afterwards, because it won't revert to its default automatically.


Rob
[flowerface]
 
Assume!
Works, thanks alot cause it was really getting annoying.

Thanks Again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top