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 running

This simple macro is in the ThisWorkbook area:
Private Sub Workbook_Open()
MsgBox ("Macro is running")
End Sub
But if I open the workbook, nothing happens.
If I start the macro in the testing window, everything runs fine (th
same result if I copy the macro in a new workbook and open that one).
So my conlusion is, Excel is not realising this macro while opening th
workbook.
I am using Excel 2002 SP2 on Windwos XP. The workbook is an old one
first release using Excel 4.0, after that updated several times
current size of the template about 2 MB.
Has any of you had similar problem with excel events

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Workbook_Open() not running

Hi
you have to put this code in your workbook module (named 'ThisWorkbook'
in the vBA editor)

--
Regards
Frank Kabel
Frankfurt, Germany


This simple macro is in the ThisWorkbook area:
Private Sub Workbook_Open()
MsgBox ("Macro is running")
End Sub
But if I open the workbook, nothing happens.
If I start the macro in the testing window, everything runs fine (the
same result if I copy the macro in a new workbook and open that one).
So my conlusion is, Excel is not realising this macro while opening
the workbook.
I am using Excel 2002 SP2 on Windwos XP. The workbook is an old one,
first release using Excel 4.0, after that updated several times,
current size of the template about 2 MB.
Has any of you had similar problem with excel events.


---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Workbook_Open() not running

Maybe the security is set to High

ToolsMacroSecurity

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Frank Kabel" wrote in message ...
Hi
you have to put this code in your workbook module (named 'ThisWorkbook'
in the vBA editor)

--
Regards
Frank Kabel
Frankfurt, Germany


This simple macro is in the ThisWorkbook area:
Private Sub Workbook_Open()
MsgBox ("Macro is running")
End Sub
But if I open the workbook, nothing happens.
If I start the macro in the testing window, everything runs fine (the
same result if I copy the macro in a new workbook and open that one).
So my conlusion is, Excel is not realising this macro while opening
the workbook.
I am using Excel 2002 SP2 on Windwos XP. The workbook is an old one,
first release using Excel 4.0, after that updated several times,
current size of the template about 2 MB.
Has any of you had similar problem with excel events.


---
Message posted from http://www.ExcelForum.com/




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 macro not running mrice Excel Discussion (Misc queries) 2 April 26th 06 06:45 PM
Workbook_Open () Bill Martin Excel Discussion (Misc queries) 12 December 20th 05 05:37 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
Workbook_Open not running when Analysis Tool Pack Add-in selected Jim Zeeb Excel Programming 1 January 27th 04 06:25 PM


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

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"