LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Taking control of an existing instance of Excel

I have two questions about gaining control of an already-running instances
of excel that was started from the Start/Programs menu, *NOT* from VBA code.

1.
Does anyone know how to locate and close a workbook named "daily.xls" that
is open in another already existing instance of Excel that was *NOT* started
from VBA code, and thus does *NOT* have an object reference to use in the
VBA code of the instance of Excel that I am working from ?

2.
Also, is it possible that after you have a way to reference the other
instance of Excel, that you can crate an object, and set it to the
already-open other instance of Excel to gain control of it for other actions
besides just closing it?

I know how to dim a new excel application and set it with CreateObject, but
that's *NOT* what I'm wanting to do here and just want to try to be clear on
what I'm looking for.

I know there must be a way to find the Windows handle and return a workbook
name but I haven't been able to figure it out yet....Thanks in
advance...Mike


 
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
How to Show Existing IE Instance if Already Exists, Else Open One Cole Excel Discussion (Misc queries) 0 June 9th 06 07:35 PM
Disassociate existing macro from control key and execute by botton Trebor Retrac Excel Discussion (Misc queries) 2 September 3rd 05 02:40 AM
How do I specify an existing procedure to run from a control adde. NeedExcelHelp Excel Programming 1 December 1st 04 01:37 PM
Get an object representing an existing Excel instance from Outlook R Avery Excel Programming 1 August 25th 04 11:16 PM
Taking focus off a Control Checkbox Don Wiss Excel Programming 1 November 11th 03 12:18 AM


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