#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Enabling Events

Greetings !

For some reason the "Workbook open" subroutines don't work - I guess this
function may have been disabled on our "system" (they have disabled Key Alt
F11, but not the "Macro Edit" )

Currently, I have to load the workbook, and then run the "Open" sub
manually.

Ditto with the "Activate" and "De-activate" subroutines....

Is there any way that *I* can re-enable this auto-run facility ?
If not, what do I ask our "systems" people to do ?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Enabling Events

Hi Robin,

Type in the Immediata Window:
Application.Enableevents=True and press Enter

Regards,
Stefi


€˛Robin Clay€¯ ezt Ć*rta:

Greetings !

For some reason the "Workbook open" subroutines don't work - I guess this
function may have been disabled on our "system" (they have disabled Key Alt
F11, but not the "Macro Edit" )

Currently, I have to load the workbook, and then run the "Open" sub
manually.

Ditto with the "Activate" and "De-activate" subroutines....

Is there any way that *I* can re-enable this auto-run facility ?
If not, what do I ask our "systems" people to do ?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Enabling Events

"Ardus Petus" wrote:

Alt-F11 to get to VBE


Thank you for responding, but Alas ! No !

That doesn't work !

I fear it may have been disabled - how can I get it re-enabled ?
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Enabling Events

"Stefi" wrote:
Type in the Immediata Window:
Application.Enableevents=True and press Enter


Yes - but I have to load the workbook first !

It SHOULD run the "WorkbookOpen" routine automatically !

Thank you for writing.


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Enabling Events

Hi Robin,

I'm afraid you have no other choice than launch Excel without opening any
workbook, reset Enableevents as I told you and THEN open your workbook.
"WorkbookOpen" routine IS an event itself and will not run if Enableevents is
set to False!

Regards,
Stefi


€˛Robin Clay€¯ ezt Ć*rta:

"Stefi" wrote:
Type in the Immediata Window:
Application.Enableevents=True and press Enter


Yes - but I have to load the workbook first !

It SHOULD run the "WorkbookOpen" routine automatically !

Thank you for writing.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Enabling Events

"Stefi" wrote:
I'm afraid you have no other choice than launch Excel without opening any
workbook, reset Enableevents as I told you and THEN open your workbook.


I guess there must be a way, somehow, to set EnableEvents = True as the
default ?

Thanks for writing.
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Enabling Events

The default is true until a VBA command sets it to False. It remains False
until another VBA command sets it to True! Therefore once it is set to False,
you MUST use Application.EnableEvents = True! You can issue this command
anywhere you want (in a normal module, Immediate window) EXCEPT in an event
Macro (because it will NOT run until EnableEvents is not set to True in an
other way)!

Regards,
Stefi



€˛Robin Clay€¯ ezt Ć*rta:

"Stefi" wrote:
I'm afraid you have no other choice than launch Excel without opening any
workbook, reset Enableevents as I told you and THEN open your workbook.


I guess there must be a way, somehow, to set EnableEvents = True as the
default ?

Thanks for writing.

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Enabling Events

"Stefi" wrote:
The default is true


Hmmm.... I wonder how "they" have managed to re-set it...

Thanks for writing.
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
Displaying graph and charts on events soteman Excel Discussion (Misc queries) 0 July 10th 06 08:15 PM
Finding concurrent events from a list with a start and an end time Dave at tch Excel Discussion (Misc queries) 3 January 13th 06 04:00 PM
Running Excel events even in edit mode.... Ishika Excel Discussion (Misc queries) 0 June 16th 05 06:53 PM
Calendar that automatically push events back one day. data3501 Excel Discussion (Misc queries) 1 February 3rd 05 01:00 AM
Outlook 2003 calendar events into Excel 2003? Kolin Tregaskes Excel Discussion (Misc queries) 4 January 31st 05 07:30 AM


All times are GMT +1. The time now is 11:18 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"