Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Jilla, my situation: All code runs from my Personal.xls. I create a menu were I need to check wether a certain sheet is available in the opened Excel workbook. The menu is created in ThisWorkbook of the Personal.xls, but the Personal.xls does not see the sheet in the opening workbook. What should I do? Thanks -- Zurn ------------------------------------------------------------------------ Zurn's Profile: http://www.excelforum.com/member.php...o&userid=14645 View this thread: http://www.excelforum.com/showthread...hreadid=532168 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() So I want my workbooks to open first, and directly afterwards make my menu (= run the code)... -- Zurn ------------------------------------------------------------------------ Zurn's Profile: http://www.excelforum.com/member.php...o&userid=14645 View this thread: http://www.excelforum.com/showthread...hreadid=532168 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What about using ActiveWorkbook, ActiveSheet, etc?
"Zurn" wrote: So I want my workbooks to open first, and directly afterwards make my menu (= run the code)... -- Zurn ------------------------------------------------------------------------ Zurn's Profile: http://www.excelforum.com/member.php...o&userid=14645 View this thread: http://www.excelforum.com/showthread...hreadid=532168 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This is my code: typed in ThisWorkbook of the VBAProject (Personal.xls) ____________________________________ Private Sub Workbook_Open() Application.WindowState = xlMaximized Application.ScreenUpdating = False Create_Menu Application.ScreenUpdating = True End Sub ____________________________________ The Sub Create_Menu goes to the opening workbook and looks into a sheet of this workbook. But the sub is executed before the book opens, and the sub does not see the sheet he needs. Sollution would be a code executed directly after opening, does this exist? -- Zurn ------------------------------------------------------------------------ Zurn's Profile: http://www.excelforum.com/member.php...o&userid=14645 View this thread: http://www.excelforum.com/showthread...hreadid=532168 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Ok, finally found it! I should have used: App_WorkbookOpen because I am working in the application, not the workbook. Stupid me! Now you know also it -- Zurn ------------------------------------------------------------------------ Zurn's Profile: http://www.excelforum.com/member.php...o&userid=14645 View this thread: http://www.excelforum.com/showthread...hreadid=532168 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for letting us know
"Zurn" wrote: Ok, finally found it! I should have used: App_WorkbookOpen because I am working in the application, not the workbook. Stupid me! Now you know also it -- Zurn ------------------------------------------------------------------------ Zurn's Profile: http://www.excelforum.com/member.php...o&userid=14645 View this thread: http://www.excelforum.com/showthread...hreadid=532168 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
personal.xls | Excel Programming | |||
Personal macro workbook and personal.xls | Excel Discussion (Misc queries) | |||
personal.htm & personal.xls in Macro | Excel Programming | |||
Personal.xls | Excel Programming |