Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default On open/closed events-and stuff

First, could anyone tell me how to script on open/closed
events, where they go and how you get them there and the
like. I've never been able to find out how to script
module stuff. I thought I read somewhere once that I was
suppose to right click on the workbook and go to view
code, kind of like you do for a sheet. That never works
for me, no view code option ever comes up.

Also, will a variable stay true into another macro when
you execute one macro from another?

Thanks for the help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default On open/closed events-and stuff

see chip pearson's page on this

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"Wandering Mage" wrote in message
...
First, could anyone tell me how to script on open/closed
events, where they go and how you get them there and the
like. I've never been able to find out how to script
module stuff. I thought I read somewhere once that I was
suppose to right click on the workbook and go to view
code, kind of like you do for a sheet. That never works
for me, no view code option ever comes up.

Also, will a variable stay true into another macro when
you execute one macro from another?

Thanks for the help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default On open/closed events-and stuff



--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Wandering Mage" wrote in message
...
First, could anyone tell me how to script on open/closed
events, where they go and how you get them there and the
like. I've never been able to find out how to script
module stuff. I thought I read somewhere once that I was
suppose to right click on the workbook and go to view
code, kind of like you do for a sheet. That never works
for me, no view code option ever comes up.

Also, will a variable stay true into another macro when
you execute one macro from another?

Thanks for the help.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default On open/closed events-and stuff

If you don't have the worksheet maximized -
At the top-left of a worksheet there is an Excel icon, right-click this and
select View Code. This will take you into the ThisWorkbook code module.

If it is maximized -
The Excel icon moves to the left of the File menu in the Excel window.

Once in the ThisWorkbook window, click on the Object drop-down at the
top-left to select the Workbook object. In the Procedure drop-down, right of
the Object drop-down, and you will see the events available to the Workbook
object.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Wandering Mage" wrote in message
...
First, could anyone tell me how to script on open/closed
events, where they go and how you get them there and the
like. I've never been able to find out how to script
module stuff. I thought I read somewhere once that I was
suppose to right click on the workbook and go to view
code, kind of like you do for a sheet. That never works
for me, no view code option ever comes up.

Also, will a variable stay true into another macro when
you execute one macro from another?

Thanks for the help.



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
Day Counting - OPEN & CLOSED Dax Arroway Excel Worksheet Functions 9 November 3rd 08 07:46 PM
reference a closed filed from a cell and formula in an open file dh13134 Excel Worksheet Functions 15 August 6th 08 08:08 PM
Show blank cell when not Closed or Open roy.okinawa Excel Worksheet Functions 4 December 8th 05 01:18 AM
VBAProject remains open after file is closed sequoia sam Excel Discussion (Misc queries) 4 August 2nd 05 07:59 PM
Determine if Workbook is Open or Closed jurgenC![_2_] Excel Programming 2 December 28th 03 10:12 PM


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