Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Two Workbooks

Hi,

Book1 has code that opens Book2.
The WorkBook.Open events in Book2 don't run.

Is there a solution or an alternative way to run the code in Book2 ?


regards,
Don

--



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Two Workbooks

Unless events are disabled, the workbook_open event in book2 should run
(unless you open up the workbook using a macro started with a shortcut key
combination which includes a Shift). If your macro in book2 is actually an
Auto_Open macro, then these do not run when the workbook is opened
programmatically. You would have to start it with your code.

--
Regards,
Tom Ogilvy

"Donald Lloyd" wrote in message
...
Hi,

Book1 has code that opens Book2.
The WorkBook.Open events in Book2 don't run.

Is there a solution or an alternative way to run the code in Book2 ?


regards,
Don

--





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Two Workbooks

Hi,

Thanks to your combined superior expertise I've managed to sort it out - I
think!

I really don't know of any other way there is to get get specific advice on
what are often obscure problems.

regards,
Don

--

"Donald Lloyd" wrote in message
...
Hi,

Book1 has code that opens Book2.
The WorkBook.Open events in Book2 don't run.

Is there a solution or an alternative way to run the code in Book2 ?


regards,
Don

--





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular Workbooks vs. Binary Workbooks Jerry Excel Discussion (Misc queries) 1 April 28th 10 04:03 AM
Updating Workbooks from multiple links Workbooks TimJames Excel Worksheet Functions 1 December 15th 07 03:34 PM
Copy/ move selected data from workbooks to seperate worksheets or workbooks Positive Excel Worksheet Functions 1 August 30th 07 04:54 PM
Display 2 formulas from source workbooks to destination workbooks Excel_seek_help Excel Discussion (Misc queries) 4 April 27th 06 08:13 PM
suddenly my excel workbooks are "shared workbooks" Maggie's mom Excel Discussion (Misc queries) 1 August 28th 05 09:20 PM


All times are GMT +1. The time now is 09:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"