Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default calling an external vbs file on the worksheet close operation

How do I program to run a file called close.vbs when an excel sheet is
closed.

Thanks for the help

gordo


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default calling an external vbs file on the worksheet close operation

Try this (adjust the path for "close.vbs" of course)

Private Sub Workbook_WindowDeactivate(ByVal Wn As Window)
Shell "C:\WINDOWS\SYSTEM32\WScript.exe C:\Test\close.vbs"
End Sub

Steve



"Gordon Cashmore" wrote in message
...
How do I program to run a file called close.vbs when an excel sheet is
closed.

Thanks for the help

gordo




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 close operation Ed02 Excel Discussion (Misc queries) 0 February 22nd 07 03:20 PM
CALLING A RANGE OF CELLS FROM EXTERNAL SOURCE Angelica Excel Discussion (Misc queries) 2 August 3rd 06 07:35 PM
Calling a specific worksheet from a hyperlink in a seperate file. TheChris Excel Worksheet Functions 0 February 2nd 06 01:48 AM
Close current Workbook after calling macro in other Des Janke Excel Programming 4 August 7th 03 07:33 AM
multi[le file operation igor Excel Programming 2 July 30th 03 05:36 PM


All times are GMT +1. The time now is 10:36 AM.

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"