Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Excel newWorkbook event not firing

I'm having some trouble with consistently getting Excel to fire the
newWorkbook event when I open Excel. It seems that on some computers,
opening excel (which opens book1.xls by default) invokes the
newWorkbook event while on others, it does not. This doesn't appear to
be an issue of version as I have two workstations with the same version
of excel (11.6560.6568) sp2 with one firing the newWorkbook event when
I open Excel and one not.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 186
Default Excel newWorkbook event not firing

Hi Jeff,
If you haven't already looked, the first thing that comes to mind is the
Excel macro security setting. Go to Tools Macro Security... and make sure
that security is not set to "High."
--
Ken Hudson


"Jeff" wrote:

I'm having some trouble with consistently getting Excel to fire the
newWorkbook event when I open Excel. It seems that on some computers,
opening excel (which opens book1.xls by default) invokes the
newWorkbook event while on others, it does not. This doesn't appear to
be an issue of version as I have two workstations with the same version
of excel (11.6560.6568) sp2 with one firing the newWorkbook event when
I open Excel and one not.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Excel newWorkbook event not firing

No, unfortunately it's not that simple. I've set macro security to low and
it still doesn't fire off.

To make sure I'm very specific, this isn't a problem if I click CTRL-N for a
new workbook once I'm inside of Excel. Creating a new workbook this way is
just fine & dandy. The newWorkbook event is fired every time.

However, the workbook shell that is opened by default by Excel when the
excel.exe application is launched does not appear to invoke the normal events
on a client-by-client basis.... A workaround is to open Excel with the /e
switch but I don't want all my customers to do this. Per Microsoft, the /e
switch "forces Excel to start without creating a new workbook(Book1.xls)."

So, it's something about that new workbook that excel creates automatically
that is different. I just need a bit of help figuring out why that workbook
invokes the newWorkbook methods on some machines and not others.

"Ken Hudson" wrote:

Hi Jeff,
If you haven't already looked, the first thing that comes to mind is the
Excel macro security setting. Go to Tools Macro Security... and make sure
that security is not set to "High."
--
Ken Hudson


"Jeff" wrote:

I'm having some trouble with consistently getting Excel to fire the
newWorkbook event when I open Excel. It seems that on some computers,
opening excel (which opens book1.xls by default) invokes the
newWorkbook event while on others, it does not. This doesn't appear to
be an issue of version as I have two workstations with the same version
of excel (11.6560.6568) sp2 with one firing the newWorkbook event when
I open Excel and one not.

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
New instance of excel.exe not firing newWorkbook event [email protected] Excel Programming 0 May 18th 06 09:41 PM
New instance of excel.exe not firing newWorkbook event [email protected] Excel Programming 0 May 18th 06 09:41 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM
Excel NewWorkbook event Doug Paul Excel Programming 0 September 4th 03 02:47 PM
C# newWorkbook event Doug Paul Excel Programming 0 August 27th 03 04:39 PM


All times are GMT +1. The time now is 01:21 PM.

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"