Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Personal.xls


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Personal.xls


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Personal.xls

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Personal.xls


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Personal.xls


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Personal.xls

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
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
personal.xls Brian2577 Excel Programming 2 December 17th 05 03:58 PM
Personal macro workbook and personal.xls John Kilkenny Excel Discussion (Misc queries) 1 June 14th 05 09:43 PM
personal.htm & personal.xls in Macro Rasoul Khoshravan Azar Excel Programming 0 January 21st 04 05:27 PM
Personal.xls Don[_9_] Excel Programming 1 August 22nd 03 10:53 PM


All times are GMT +1. The time now is 04:08 AM.

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"