1

I have two workbooks integrated into the following workflow:

1. I export data from WB1 into WB2 2. I want to check, whether the data in WB2 are up to date. 

In my VBA Code in WB1 I use

Workbooks.Open "C:\WorkbookName.xls" 

to get my data from WB1 into WB2.

In WB2 I have VBA Code within the Open Event to check it the data is up to date.

PROBLEM: If I use Workbooks.Open "C:\WorkbookName.xls" the Open Event fires. Is it possible to avoid that and to manipulate the WB2 from WB1 without to activate the Open Event?

1 Answer 1

3

This can be done by disabling the events before opening the file:

Application.EnableEvents = False 

After opening the file you can enable the events again:

Application.EnableEvents = True 
Sign up to request clarification or add additional context in comments.

1 Comment

Correct. The aforementioned lines should be put into the WB1 code.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.