Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Open another program

How can I open another program from inside excel? Say I have an executable
in the root of C called st.exe.
C:\ST.Exe. If this is called I want to close excel WITHOUT saving the
changes.

Thanks for your help.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Open another program


. . .
shell "C:\st.exe"
for each bk in workbooks
if bk.Name < thisworkbook.Name then
bk.close Savechanges:=False
end if
Next

Thisworkbook.Close Savechanges:=False
End Sub

--
Regards,
Tom Ogilvy


"Striker" wrote:

How can I open another program from inside excel? Say I have an executable
in the root of C called st.exe.
C:\ST.Exe. If this is called I want to close excel WITHOUT saving the
changes.

Thanks for your help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Open another program

Thanks Tom, I'll give this a try today.

"Tom Ogilvy" wrote in message
...

. . .
shell "C:\st.exe"
for each bk in workbooks
if bk.Name < thisworkbook.Name then
bk.close Savechanges:=False
end if
Next

Thisworkbook.Close Savechanges:=False
End Sub

--
Regards,
Tom Ogilvy


"Striker" wrote:

How can I open another program from inside excel? Say I have an
executable
in the root of C called st.exe.
C:\ST.Exe. If this is called I want to close excel WITHOUT saving the
changes.

Thanks for your 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
get name of every open 'Program" J Streger Excel Programming 1 June 27th 06 06:18 AM
I cant open files unless I open the Excel program first ElaineAng Excel Discussion (Misc queries) 3 February 16th 06 02:54 PM
open up an excel program with an auto open macro [email protected] Excel Programming 2 July 17th 05 04:48 PM
I can not open my excel program, myriam Excel Discussion (Misc queries) 1 March 18th 05 01:42 PM
How do I open a program(CADD) with VBA Bryan_m[_2_] Excel Programming 2 June 30th 04 01:36 PM


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