Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Controlling VB executable from Excel File

I have a VB 6.0 exectutable that opens a specific Excel 97 file and contains
a timer event to close the Excel file if dormant. This works well. I need
to add a further control such that on closing the Excel 97 file the VB
executable also closes. Any ideas how to do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Controlling VB executable from Excel File

Graham,
You have the source code the VB app ?

NickHK

"Graham Masters" wrote in message
...
I have a VB 6.0 exectutable that opens a specific Excel 97 file and

contains
a timer event to close the Excel file if dormant. This works well. I

need
to add a further control such that on closing the Excel 97 file the VB
executable also closes. Any ideas how to do this?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Controlling VB executable from Excel File

Nick,
Not sure what you mean!

"NickHK" wrote:

Graham,
You have the source code the VB app ?

NickHK

"Graham Masters" wrote in message
...
I have a VB 6.0 exectutable that opens a specific Excel 97 file and

contains
a timer event to close the Excel file if dormant. This works well. I

need
to add a further control such that on closing the Excel 97 file the VB
executable also closes. Any ideas how to do this?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Controlling VB executable from Excel File

Graham,
You want to edit the VB6 app to achieve your goal or you working from VBA to
control the VB6 app ?

NickHK

"Graham Masters" wrote in message
...
Nick,
Not sure what you mean!

"NickHK" wrote:

Graham,
You have the source code the VB app ?

NickHK

"Graham Masters" wrote in

message
...
I have a VB 6.0 exectutable that opens a specific Excel 97 file and

contains
a timer event to close the Excel file if dormant. This works well. I

need
to add a further control such that on closing the Excel 97 file the VB
executable also closes. Any ideas how to do this?






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Controlling VB executable from Excel File

I need to write VBA in Excel so that when the User closes the Excel file the
VB executable also closes.

"NickHK" wrote:

Graham,
You want to edit the VB6 app to achieve your goal or you working from VBA to
control the VB6 app ?

NickHK

"Graham Masters" wrote in message
...
Nick,
Not sure what you mean!

"NickHK" wrote:

Graham,
You have the source code the VB app ?

NickHK

"Graham Masters" wrote in

message
...
I have a VB 6.0 exectutable that opens a specific Excel 97 file and
contains
a timer event to close the Excel file if dormant. This works well. I
need
to add a further control such that on closing the Excel 97 file the VB
executable also closes. Any ideas how to do this?








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Controlling VB executable from Excel File

How about a second (more frequent) timer in the VB app which checks to see
if the opened file is still open.
If the file is closed then the app closes itself. That saves you from
replicating the "close vb app" code across multiple workbooks.

--
Tim Williams
Palo Alto, CA


"Graham Masters" wrote in message
...
I have a VB 6.0 exectutable that opens a specific Excel 97 file and

contains
a timer event to close the Excel file if dormant. This works well. I

need
to add a further control such that on closing the Excel 97 file the VB
executable also closes. Any ideas how to do this?



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
getting an excel file to run as an executable excellenze Excel Discussion (Misc queries) 1 March 24th 06 07:45 PM
How can generate an executable file from Excel? Ofigomez Excel Discussion (Misc queries) 4 October 25th 05 01:17 PM
Convert excel file to executable file sparx Excel Discussion (Misc queries) 1 September 24th 05 01:36 PM
Excel file as an executable? James Excel Programming 4 September 7th 05 08:51 PM
Is there a way to make Excel file an executable? luvgreen[_3_] Excel Programming 1 March 3rd 04 07:27 PM


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