Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Event When the excel opens

Dear Friends,

I need to run a set of codes when ever excel is opened and another set
of codes when ever excel is closed, is this possible..?



Thanks in Advance

Regards
Thyagaraj

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Event When the excel opens

Thyagaraj,
Your Personal.xls WB is open/closed along with Excel, so any code in it's
Workbook_Open/BeforeClose events will fire.

NickHK

"Thyagaraj" wrote in message
oups.com...
Dear Friends,

I need to run a set of codes when ever excel is opened and another set
of codes when ever excel is closed, is this possible..?



Thanks in Advance

Regards
Thyagaraj



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Event When the excel opens

how to store macro in personal xls?
i only get options
1 all open worksbooks
2 this worksbook
3 book1
--
hemu


"NickHK" wrote:

Thyagaraj,
Your Personal.xls WB is open/closed along with Excel, so any code in it's
Workbook_Open/BeforeClose events will fire.

NickHK

"Thyagaraj" wrote in message
oups.com...
Dear Friends,

I need to run a set of codes when ever excel is opened and another set
of codes when ever excel is closed, is this possible..?



Thanks in Advance

Regards
Thyagaraj




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Event When the excel opens

Not sure what you looking at, but in the VBA IDE, ViewProject Explorer,
will bring up a window, showing the worksheets/userforms/modules for all
open workbook.
Select Personal.xls, then add where necessary.

NickHK

"Hemant_india" wrote in message
...
how to store macro in personal xls?
i only get options
1 all open worksbooks
2 this worksbook
3 book1
--
hemu


"NickHK" wrote:

Thyagaraj,
Your Personal.xls WB is open/closed along with Excel, so any code in

it's
Workbook_Open/BeforeClose events will fire.

NickHK

"Thyagaraj" wrote in message
oups.com...
Dear Friends,

I need to run a set of codes when ever excel is opened and another set
of codes when ever excel is closed, is this possible..?



Thanks in Advance

Regards
Thyagaraj






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Event When the excel opens

nick
i do not see word personal anywhere
what could be wrong?
--
hemu


"NickHK" wrote:

Not sure what you looking at, but in the VBA IDE, ViewProject Explorer,
will bring up a window, showing the worksheets/userforms/modules for all
open workbook.
Select Personal.xls, then add where necessary.

NickHK

"Hemant_india" wrote in message
...
how to store macro in personal xls?
i only get options
1 all open worksbooks
2 this worksbook
3 book1
--
hemu


"NickHK" wrote:

Thyagaraj,
Your Personal.xls WB is open/closed along with Excel, so any code in

it's
Workbook_Open/BeforeClose events will fire.

NickHK

"Thyagaraj" wrote in message
oups.com...
Dear Friends,

I need to run a set of codes when ever excel is opened and another set
of codes when ever excel is closed, is this possible..?



Thanks in Advance

Regards
Thyagaraj









  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Event When the excel opens

Which version of Excel are you using ?
Search your computer for this file, "Personal.xls".

NickHK

"Hemant_india" wrote in message
...
nick
i do not see word personal anywhere
what could be wrong?
--
hemu


"NickHK" wrote:

Not sure what you looking at, but in the VBA IDE, ViewProject Explorer,
will bring up a window, showing the worksheets/userforms/modules for all
open workbook.
Select Personal.xls, then add where necessary.

NickHK

"Hemant_india" wrote in message
...
how to store macro in personal xls?
i only get options
1 all open worksbooks
2 this worksbook
3 book1
--
hemu


"NickHK" wrote:

Thyagaraj,
Your Personal.xls WB is open/closed along with Excel, so any code in

it's
Workbook_Open/BeforeClose events will fire.

NickHK

"Thyagaraj" wrote in message
oups.com...
Dear Friends,

I need to run a set of codes when ever excel is opened and another

set
of codes when ever excel is closed, is this possible..?



Thanks in Advance

Regards
Thyagaraj









  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Event When the excel opens

It is quite possible that the personal.xls workbook has not yet
been created. Record a new macro, what it does is irrelevant,
and change the "Store macro in" setting to "Personal Macro
Workbook". This will create the file and then save the macro to
that file.


"NickHK" wrote in message
...
Which version of Excel are you using ?
Search your computer for this file, "Personal.xls".

NickHK

"Hemant_india" wrote in
message
...
nick
i do not see word personal anywhere
what could be wrong?
--
hemu


"NickHK" wrote:

Not sure what you looking at, but in the VBA IDE,
ViewProject Explorer,
will bring up a window, showing the
worksheets/userforms/modules for all
open workbook.
Select Personal.xls, then add where necessary.

NickHK

"Hemant_india" wrote
in message
...
how to store macro in personal xls?
i only get options
1 all open worksbooks
2 this worksbook
3 book1
--
hemu


"NickHK" wrote:

Thyagaraj,
Your Personal.xls WB is open/closed along with Excel, so
any code in
it's
Workbook_Open/BeforeClose events will fire.

NickHK

"Thyagaraj" wrote in message
oups.com...
Dear Friends,

I need to run a set of codes when ever excel is opened
and another

set
of codes when ever excel is closed, is this
possible..?



Thanks in Advance

Regards
Thyagaraj











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
Excel opens in Autosave.How do I delete it so it opens in Book1? Christine Setting up and Configuration of Excel 1 February 15th 10 02:10 AM
Excel file opens and opens and opens Wanna Learn Excel Discussion (Misc queries) 1 June 9th 09 11:03 PM
Excel opens correct view - web (used frontpg) opens it wrong Jim2003 Excel Discussion (Misc queries) 1 July 27th 05 10:25 PM
Personal workbook opens when Excel opens SheriTingle Excel Discussion (Misc queries) 2 March 30th 05 12:22 AM
How to register an event handler when excel opens John Davidson[_2_] Excel Programming 4 June 2nd 04 04:48 PM


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