workbook_open no longer occurs
Well...
One of the first things I did was to comment out my workbook_open() sub
(which had been working in all versions before) so that there was no
"workbook_open()" event.
THEN, I allowed the vbe interface to create a new stub workbook open routine
into which I put the messagebox code. Here is what my workbook_open routine
looks like right now:
Private Sub Workbook_Open()
MsgBox prompt:="How now brown cow"
End Sub
Thanks for the thought, though. As I stated before, this routine was
working right along until something slammed into it's facade.
"Tom Ogilvy" wrote:
sounds like you might have Workbook_Open misspelled. (maybe an extra
underscore or something.) given it is in the ThisWorkbook module.
--
regards,
Tom Ogilvy
"Steve the large" wrote:
I have a file that contains code in the workbook open event.
I have been making periodic enhancements and am up to "version 18" of the
app I am creating. The workbook open event stopped running when I open the
file.
I stripped out the code and just put a 'msgbox "text here..."' call in the
event to just see if it fires off. It does not. All sheet_activate events
still work. All macros run, including workbook_beforeclose, but not
workbook_open.
The workbook_open event still operates as expected in other workbooks,
including "version 17", and un-related workbooks.
I created a brand new workbook, copied version 18's sheets, modules, forms,
names and properties over, and the workbook_open still doesnt work.
Searched the KB, and this is NOT a workbook.open call. I am just double
clicking on the file in windows explorer to start (and my shift key is not
stuck down).
Any suggestions would be appreciated greatly.
|