PC Review


Reply
Thread Tools Rate Thread

Auto_open OR Workbook_open

 
 
=?Utf-8?B?QmFhcGk=?=
Guest
Posts: n/a
 
      15th Nov 2006
Hi,

I have a couple of quaestions...

1. Which of these two events occurs first when an excel workbook is opened?
2. Does this also depend on whether the Excel application (not the
particular workbook) is already open?

I'm asking these questions in regard to scheduling the macro for a later
time...

Any help would be greatly appreciated

Thanks,
--
Baapi
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      15th Nov 2006
workbook_open first

makes no difference whether Excel started or not, it only makes a difference
if opening the workbook from code, then auto_open doesn't fire.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Baapi" <(E-Mail Removed)> wrote in message
news:01D99ECE-8AEE-41E6-B0DC-(E-Mail Removed)...
> Hi,
>
> I have a couple of quaestions...
>
> 1. Which of these two events occurs first when an excel workbook is

opened?
> 2. Does this also depend on whether the Excel application (not the
> particular workbook) is already open?
>
> I'm asking these questions in regard to scheduling the macro for a later
> time...
>
> Any help would be greatly appreciated
>
> Thanks,
> --
> Baapi



 
Reply With Quote
 
=?Utf-8?B?RGF2ZSBSYW1hZ2U=?=
Guest
Posts: n/a
 
      15th Nov 2006
A quick test with a MsgBox function in each procedure shows that the
Workbook_Open fires first, regardless of whether the Excel application is
already running.

Note that before either runs you will likely get the 'Ok to run macros'
dialog.

Cheers,
Dave

"Baapi" wrote:

> Hi,
>
> I have a couple of quaestions...
>
> 1. Which of these two events occurs first when an excel workbook is opened?
> 2. Does this also depend on whether the Excel application (not the
> particular workbook) is already open?
>
> I'm asking these questions in regard to scheduling the macro for a later
> time...
>
> Any help would be greatly appreciated
>
> Thanks,
> --
> Baapi

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Workbook_Open vs Auto_Open Bongard Microsoft Excel Programming 4 24th Feb 2009 04:47 PM
trying to replace auto_open with something like workbook_open Solutions Manager Microsoft Excel Programming 1 10th Jan 2009 10:55 AM
Auto_Open Workbook_Open yngve.angelskaar@fusi.no Microsoft Excel Programming 4 2nd Nov 2005 08:20 PM
Auto_Open and Workbook_Open Erich Neuwirth Microsoft Excel Programming 1 14th Jul 2004 01:19 AM
Auto_Open Vs Workbook_open Soniya Microsoft Excel Programming 2 23rd Sep 2003 03:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:36 AM.