Already went there. The last time I needed to do something like this was in
Excel 97 and I believe they had an Application level in the Project browser
and then the ThisWorkbook selection for respective workbooks. I have done
this before, but years ago.
If I add code to thisworkbook, won't that only run when I open Thisworkbook?
In need to invoke a sub right when Excel Starts, kind of like the AutoExec
macro or OnStartup in an Access mdb.
May I ask if you could show me a sample, maybe I need to use an xla or
something? A sample of where I would place a simple sub like
Sub TestOpen()
msgbox "test"
End Sub
so that as soon as I click on my Excel icon as excel opens up I get the
"Test" message?
Thanks.
"JW" wrote:
> Have a look at Chip's page regarding Application Level Events.
> http://www.cpearson.com/excel/AppEvent.aspx
>
> Rich wrote:
> > Greetings,
> >
> > How do I add a subroutine at the application level?
> >
> > Example: When I start up Excel I want to have it bring up a messagebox that
> > says "test"
> >
> > I can see in the VB editor how to do this at the workbook level in the
> > workbook open event. But I need to do this at the application level.
> >
> > Thanks.
> > Rich
>
>