Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
We have created a VSTO addin for Excel 2003 and have written code to manage
creation of new workbooks. However, we have been unable to find a control or an event that we can hook to that would allow us to run our code when the user creates a new workbook from the "New Workbook" task pane. Can anyone tell me how to accomplish this? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You are looking for an application level event. Check out this link...
http://www.cpearson.com/excel/AppEvent.htm -- HTH... Jim Thomlinson "Patrick Hampton" wrote: We have created a VSTO addin for Excel 2003 and have written code to manage creation of new workbooks. However, we have been unable to find a control or an event that we can hook to that would allow us to run our code when the user creates a new workbook from the "New Workbook" task pane. Can anyone tell me how to accomplish this? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Unfortunatly we need a BeforeWorkbookOpen event and there is no such event at
the application level in Excel. Is there a workaround for this? "Jim Thomlinson" wrote: You are looking for an application level event. Check out this link... http://www.cpearson.com/excel/AppEvent.htm -- HTH... Jim Thomlinson "Patrick Hampton" wrote: We have created a VSTO addin for Excel 2003 and have written code to manage creation of new workbooks. However, we have been unable to find a control or an event that we can hook to that would allow us to run our code when the user creates a new workbook from the "New Workbook" task pane. Can anyone tell me how to accomplish this? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Patrick Hampton" wrote...
Unfortunatly we need a BeforeWorkbookOpen event and there is no such event at the application level in Excel. Is there a workaround for this? .... The art of kludgery is dead. The Excel Application class provides events named NewWorkbook and WorkbookOpen. Even if they don't fire before the workbook opens, you could use it either to save newly created workbooks, close the user's workbook, run your initialization code, and reopen the user's workbook or run your initialization code after the user's workbook is open. Depends on what you want to do. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Clear "Help Task Pane" | Excel Discussion (Misc queries) | |||
There are no "BeforeCalculate" or "AfterCalculate" events | Excel Discussion (Misc queries) | |||
can i get the "message pane" underneath the "threads pane" instea | Excel Worksheet Functions | |||
How to permanently get rid of "Getting Started" task pane in Exce | Excel Discussion (Misc queries) | |||
toolbar("Task Pane") problem!!!!!!! | Excel Programming |