Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 10th, 2007, 09:09 PM
Authorized User
 
Join Date: Jul 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Opening Workbooks With Macros

I have a need to run a workbook with a lot of VBE that will open and process information on the sheets in other books. My problem is that the workbooks I have to open also have a lot of VBE on them. Can anyone tell me how I can open workbooks from VBE in one book without Workbook_Open and Workbook_Close subroutines in the books being acted on activating? I guess my question is really how do I open other workbooks with macros disabled from a workbook with macros enabled?

Thanks,

Terry
 
Old February 11th, 2007, 05:48 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Terry

Use
Application.EnableEvents = False
' Open here your Workbook
Application.EnableEvents = True



-vemaju





Similar Threads
Thread Thread Starter Forum Replies Last Post
comparing rows of two workbooks nasirmunir Excel VBA 2 July 9th, 2008 08:10 PM
two workbooks--matching values within kwik10z Excel VBA 0 November 29th, 2007 11:51 AM
COUNTIF Function can't reference other workbooks kuznickic Excel VBA 1 October 5th, 2007 04:35 AM
Searching and Checking Values in other workbooks lavaguava13 Excel VBA 1 September 17th, 2005 04:15 PM
Looping through Excel Workbooks collection clickco Excel VBA 0 April 14th, 2004 12:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.