summaryrefslogtreecommitdiff
path: root/ext/win32ole/sample/excel1.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/win32ole/sample/excel1.rb')
-rw-r--r--ext/win32ole/sample/excel1.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/win32ole/sample/excel1.rb b/ext/win32ole/sample/excel1.rb
index c8cd38e7328..7136c938a3e 100644
--- a/ext/win32ole/sample/excel1.rb
+++ b/ext/win32ole/sample/excel1.rb
@@ -27,7 +27,10 @@ range.Select
chart = workbook.Charts.Add;
workbook.saved = TRUE;
-sleep 0.5
+
+print "Now quit Excel... Please enter."
+gets
+
application.ActiveWorkbook.Close(0);
application.Quit();