Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I figured out your suggestion. I created a new workbook and called it
Personal.xls and saved it to prog...XLstart and added msgbox "testing" to the ThisWorkbook.Open event. Seems to work OK. Now the real deal is that Excel is being opened by Sql Server Reporting services. I have set some Reporting Services reports to open as Excel files from a .Net app I wrote. The problem is that when users print out the Excel reports -- they are printing out in landscape but need to be in Portrait layout. I could add a macro button that the users can press before they print, but I would rather identify the workbook as a reporting services workbook and set the page layout to portrait seamlessly. I hope I can identify the workbook on the application startup. "Gary''s Student" wrote: Put the workbook open macro in your personal.xls file. -- Gary''s Student - gsnu200751 "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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Application level event help | Excel Discussion (Misc queries) | |||
Application level VBE | Excel Programming | |||
Application Level macros | Excel Programming | |||
Application level event handler broken in 2003SP1 ? | Excel Programming | |||
Monitoring application-level event problem | Excel Programming |