Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default detecting open excel apllications and api qn

Hi People, Can anyone help?

I would like my macro to detect whether other excel applications are open on
my PC. As far as I can tell there is no applications collection ao I'm
guessing (!) that it'll necessitate an API call? ...which leads me to my
second question: is there any literature that gives a good overview of the
api - I'd like to become familiar with it but the on-line documentation on
the msn website is a bit daunting!

Many many thanks in advance

Noel

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default detecting open excel apllications and api qn

I don't know of an explanation, but Stephen Bullen has sample code that
enumerates all windows - you could adapt this to identify those windows
which represent excel applications.

http://www.oaltd.co.uk/DLCount/DLCou...le=EnumDlg.zip

This is found on
http://www.oaltd.co.uk/Excel/Default.htm

as the last item under "they said it couldn't be done" section.

--
Regards,
Tom Ogilvy

"noel mcwilliam" <noel wrote in message
...
Hi People, Can anyone help?

I would like my macro to detect whether other excel applications are open

on
my PC. As far as I can tell there is no applications collection ao I'm
guessing (!) that it'll necessitate an API call? ...which leads me to my
second question: is there any literature that gives a good overview of the
api - I'd like to become familiar with it but the on-line documentation on
the msn website is a bit daunting!

Many many thanks in advance

Noel



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default detecting open excel apllications and api qn

Will have to look at this tonight (cant download here).

Much appreciated. Thanks.

Noel

"Tom Ogilvy" wrote:

I don't know of an explanation, but Stephen Bullen has sample code that
enumerates all windows - you could adapt this to identify those windows
which represent excel applications.

http://www.oaltd.co.uk/DLCount/DLCou...le=EnumDlg.zip

This is found on
http://www.oaltd.co.uk/Excel/Default.htm

as the last item under "they said it couldn't be done" section.

--
Regards,
Tom Ogilvy

"noel mcwilliam" <noel wrote in message
...
Hi People, Can anyone help?

I would like my macro to detect whether other excel applications are open

on
my PC. As far as I can tell there is no applications collection ao I'm
guessing (!) that it'll necessitate an API call? ...which leads me to my
second question: is there any literature that gives a good overview of the
api - I'd like to become familiar with it but the on-line documentation on
the msn website is a bit daunting!

Many many thanks in advance

Noel




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default detecting open excel apllications and api qn

Hi Noel,

is there any literature that gives a good overview of the
api - I'd like to become familiar with it but the on-line documentation on
the msn website is a bit daunting!


Just a FWIW, but we have a chapter called "Understanding and using the
Windows API" in our new book "Professional Excel Development", due out in
February. That chapter had some very favourable reviews from our editors.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.oaltd.co.uk


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
Not detecting Open Workbook - Why Roger Excel Discussion (Misc queries) 7 January 26th 08 08:16 PM
Not Detecting Open Workbook Status - Odd?? Jenny B. Excel Discussion (Misc queries) 4 January 16th 08 12:47 AM
Detecting if a Window/Workbook is Open Rob Excel Discussion (Misc queries) 5 July 10th 07 10:52 PM
Detecting open files R Avery Excel Programming 2 January 5th 04 05:25 PM
Detecting non-supported files using Excel.Open [email protected] Excel Programming 0 October 29th 03 11:48 PM


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