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

Hi all

After a bit of testing I am satisfied that the macro
Private Sub Workbook_Open()
that resides behind "ThisWorkbook"
is not running at all when the workbook is opened.

Any ideas how I should try to fix this? I tried running Rob Bovey's code
cleaner, and the project compiles ok without any errors.

--
Return email address is not as DEEP as it appears


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Workbook_Open() will not run

Jack, what version of excel are you using? If 2000 or above check tools
macro security and see if it is set to high or very high
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Jack Sheet" wrote in message
...
Hi all

After a bit of testing I am satisfied that the macro
Private Sub Workbook_Open()
that resides behind "ThisWorkbook"
is not running at all when the workbook is opened.

Any ideas how I should try to fix this? I tried running Rob Bovey's code
cleaner, and the project compiles ok without any errors.

--
Return email address is not as DEEP as it appears



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Workbook_Open() will not run

Jack , it could also could be a sticking shift key, that will keep the
startup macro from running
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"Paul B" wrote in message
...
Jack, what version of excel are you using? If 2000 or above check tools
macro security and see if it is set to high or very high
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Jack Sheet" wrote in message
...
Hi all

After a bit of testing I am satisfied that the macro
Private Sub Workbook_Open()
that resides behind "ThisWorkbook"
is not running at all when the workbook is opened.

Any ideas how I should try to fix this? I tried running Rob Bovey's code
cleaner, and the project compiles ok without any errors.

--
Return email address is not as DEEP as it appears





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Workbook_Open() will not run

Thanks.
I don't think that it is a sticky shift key, because I emailed the workbook
from work to home and it displays the same problem.
At home I am using Office XP Pro 2002 SP2
I think it is the same version at the office.
The other macros work OK, so in principle the security settings permit macro
execution (I get a warning message that it contains macros when I load the
file, and I choose to "enable macros").
Also, I tried putting the code into an Auto_Open() macro in a general module
and that seemed to run OK. It just won't work from Workbook_Open() in the
ThisWorkbook module.

--
Return email address is not as DEEP as it appears
"Paul B" wrote in message
...
Jack , it could also could be a sticking shift key, that will keep the
startup macro from running
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"Paul B" wrote in message
...
Jack, what version of excel are you using? If 2000 or above check tools
macro security and see if it is set to high or very high
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Jack Sheet" wrote in message
...
Hi all

After a bit of testing I am satisfied that the macro
Private Sub Workbook_Open()
that resides behind "ThisWorkbook"
is not running at all when the workbook is opened.

Any ideas how I should try to fix this? I tried running Rob Bovey's code
cleaner, and the project compiles ok without any errors.

--
Return email address is not as DEEP as it appears







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Workbook_Open() will not run

Jack, Don't know what you code looks like , may need to post the code and
see if somebody can see anything in it that could be causing this to happen,
maybe on error exit sub? What happens if you try a simple macro to test it,
like this
Private Sub Workbook_Open()
MsgBox "It Works!"
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Jack Sheet" wrote in message
...
Thanks.
I don't think that it is a sticky shift key, because I emailed the
workbook from work to home and it displays the same problem.
At home I am using Office XP Pro 2002 SP2
I think it is the same version at the office.
The other macros work OK, so in principle the security settings permit
macro execution (I get a warning message that it contains macros when I
load the file, and I choose to "enable macros").
Also, I tried putting the code into an Auto_Open() macro in a general
module and that seemed to run OK. It just won't work from Workbook_Open()
in the ThisWorkbook module.

--
Return email address is not as DEEP as it appears
"Paul B" wrote in message
...
Jack , it could also could be a sticking shift key, that will keep the
startup macro from running
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"Paul B" wrote in message
...
Jack, what version of excel are you using? If 2000 or above check tools
macro security and see if it is set to high or very high
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Jack Sheet" wrote in message
...
Hi all

After a bit of testing I am satisfied that the macro
Private Sub Workbook_Open()
that resides behind "ThisWorkbook"
is not running at all when the workbook is opened.

Any ideas how I should try to fix this? I tried running Rob Bovey's
code cleaner, and the project compiles ok without any errors.

--
Return email address is not as DEEP as it appears











  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Workbook_Open() will not run

Thanks. Already thought of that, so I deleted all the code from the
Workbook_Open() except for a msgbox instruction - no dice. Put that one
line into Auto_Open() and it worked.

I wonder if it may be symptomatic of some workbook corruption and if it is
whether there is a quick way of filtering out corruptions of this nature.

--
Return email address is not as DEEP as it appears
"Paul B" wrote in message
...
Jack, Don't know what you code looks like , may need to post the code and
see if somebody can see anything in it that could be causing this to
happen, maybe on error exit sub? What happens if you try a simple macro to
test it, like this
Private Sub Workbook_Open()
MsgBox "It Works!"
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Jack Sheet" wrote in message
...
Thanks.
I don't think that it is a sticky shift key, because I emailed the
workbook from work to home and it displays the same problem.
At home I am using Office XP Pro 2002 SP2
I think it is the same version at the office.
The other macros work OK, so in principle the security settings permit
macro execution (I get a warning message that it contains macros when I
load the file, and I choose to "enable macros").
Also, I tried putting the code into an Auto_Open() macro in a general
module and that seemed to run OK. It just won't work from
Workbook_Open() in the ThisWorkbook module.

--
Return email address is not as DEEP as it appears
"Paul B" wrote in message
...
Jack , it could also could be a sticking shift key, that will keep the
startup macro from running
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"Paul B" wrote in message
...
Jack, what version of excel are you using? If 2000 or above check tools
macro security and see if it is set to high or very high
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from
it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Jack Sheet" wrote in message
...
Hi all

After a bit of testing I am satisfied that the macro
Private Sub Workbook_Open()
that resides behind "ThisWorkbook"
is not running at all when the workbook is opened.

Any ideas how I should try to fix this? I tried running Rob Bovey's
code cleaner, and the project compiles ok without any errors.

--
Return email address is not as DEEP as it appears











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 12:20 PM.

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"