Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Workbook_Open() Not executing

Miffed.

My spreadsheet which relies hevily on certain code being executed when the
sheet is opened, but work open event is not executing. This morning it
stopped working?

Private Sub Workbook_Open()

Application.ScreenUpdating = False
MsgBox "Made it to wrokbook _open"
Call InitialiseSheet
Call Add_Custom_Menu
Call Run_Filters

Application.ScreenUpdating = True
Range("a2").Select
End Sub

There is no enable event code either false or true in the workbook.

Any ideas?

Dave
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Workbook_Open() Not executing

Not terribly familiar with debugs. I have been in contact with my help desk.
They can run the macro fine and get the msgbox when workbook is opened
indicating that all the code is executed. Macros security settings are
correct.

we think we have a novell profile problem.

I would appreciate debug tip however

"Bob Phillips" wrote:

Dave,

Why don't you put some debug statements in the code and find out where it
stops working?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dave is Miffed" <Dave is wrote in message
...
Miffed.

My spreadsheet which relies hevily on certain code being executed when the
sheet is opened, but work open event is not executing. This morning it
stopped working?

Private Sub Workbook_Open()

Application.ScreenUpdating = False
MsgBox "Made it to wrokbook _open"
Call InitialiseSheet
Call Add_Custom_Menu
Call Run_Filters

Application.ScreenUpdating = True
Range("a2").Select
End Sub

There is no enable event code either false or true in the workbook.

Any ideas?

Dave




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Workbook_Open() Not executing

AT various points in the code add statement like

Debug.Print "Debug point 1"

then 2, 3 etc.

When the code runs, these will. be shown in the Immediate window in the VBE
(use Ctrl-G in VBE to see this window). By following the debug statements,
you can see which pieces of your code get executed and which do not.
Typically, you would add a few general debug statements, and then when you
identify where it stops, and some more, and drill down into the trouble
spot.

Another way is to use single-stepping. In this, you open up the Workbok_Open
macro, put the cursor in that macro (anywhere in it), and menu DebugStep
Into (or F8). Then just F8 through the code, and you will step into each
line as it gets executed, and you can trace where it goes wrong.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dave is Miffed" wrote in message
...
Not terribly familiar with debugs. I have been in contact with my help

desk.
They can run the macro fine and get the msgbox when workbook is opened
indicating that all the code is executed. Macros security settings are
correct.

we think we have a novell profile problem.

I would appreciate debug tip however

"Bob Phillips" wrote:

Dave,

Why don't you put some debug statements in the code and find out where

it
stops working?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dave is Miffed" <Dave is wrote in

message
...
Miffed.

My spreadsheet which relies hevily on certain code being executed when

the
sheet is opened, but work open event is not executing. This morning

it
stopped working?

Private Sub Workbook_Open()

Application.ScreenUpdating = False
MsgBox "Made it to wrokbook _open"
Call InitialiseSheet
Call Add_Custom_Menu
Call Run_Filters

Application.ScreenUpdating = True
Range("a2").Select
End Sub

There is no enable event code either false or true in the workbook.

Any ideas?

Dave






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
Workbook_Open () Bill Martin Excel Discussion (Misc queries) 12 December 20th 05 05:37 PM
Workbook_Open Jim Zeeb[_2_] Excel Programming 8 December 3rd 04 11:54 PM
workbook_open julio Excel Programming 4 September 26th 04 10:23 PM
Workbook_Open Eric Marple Excel Programming 3 May 10th 04 01:24 AM
Help with Workbook_Open Ruan[_3_] Excel Programming 7 April 28th 04 07:52 AM


All times are GMT +1. The time now is 03:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"