summaryrefslogtreecommitdiff
path: root/ext/win32ole/sample/excel3.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/win32ole/sample/excel3.rb')
-rw-r--r--ext/win32ole/sample/excel3.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/win32ole/sample/excel3.rb b/ext/win32ole/sample/excel3.rb
index 0f967170639..1ace478007d 100644
--- a/ext/win32ole/sample/excel3.rb
+++ b/ext/win32ole/sample/excel3.rb
@@ -11,3 +11,10 @@ puts "The number of sheets is #{sheetS.count}"
puts "Now add 2 sheets after of `#{sheet.name}`"
sheetS.add({'count'=>2, 'after'=>sheet})
puts "The number of sheets is #{sheetS.count}"
+
+print "Now quit Excel... Please enter."
+gets
+
+application.ActiveWorkbook.Close(0);
+application.Quit();
+