<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: excel code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 17 May 2008 22:38:50 GMT</pubDate>
    <description>DZone Snippets: excel code</description>
    <item>
      <title>Excel VBA : read registry key values on a remote computer using WMI</title>
      <link>http://snippets.dzone.com/posts/show/4675</link>
      <description>// VBA code to paste in an module&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Function ORACLEHOMES(strComputer As String)&lt;br /&gt;    Const HKEY_LOCAL_MACHINE = &amp;H80000002&lt;br /&gt;    ORACLEHOMES = ""&lt;br /&gt;    Dim strKeyPath&lt;br /&gt;    Dim arrSubKeys&lt;br /&gt;    Dim oReg&lt;br /&gt;    Dim strValueName&lt;br /&gt;    Dim strValue&lt;br /&gt;    'strComputer = "."&lt;br /&gt;    Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &amp; strComputer &amp; "\root\default:StdRegProv")&lt;br /&gt;    strKeyPath = "SOFTWARE\ORACLE"&lt;br /&gt;    oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys&lt;br /&gt;    For Each subkey In arrSubKeys&lt;br /&gt;        If Left(subkey, 4) = "KEY_" Then&lt;br /&gt;            strValueName = "ORACLE_HOME"&lt;br /&gt;            oReg.GetStringValue HKEY_LOCAL_MACHINE, strKeyPath &amp; "\" &amp; subkey, strValueName, strValue&lt;br /&gt;            If ORACLEHOMES = "" Then&lt;br /&gt;                ORACLEHOMES = strValue&lt;br /&gt;            Else&lt;br /&gt;                ORACLEHOMES = ORACLEHOMES &amp; ";" &amp; strValue&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;br /&gt;    Next&lt;br /&gt;End Function&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 19 Oct 2007 12:03:49 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4675</guid>
      <author>bouffon69 (Sylvain Le Courtois)</author>
    </item>
    <item>
      <title>Excel : Make a query on a Oracle database and return the result (useful for sheet formulas)</title>
      <link>http://snippets.dzone.com/posts/show/4518</link>
      <description>// This should be pasted in a module of the workbook&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Function ORAQUERY(strHost As String, strDatabase As String, strSQL As String, strUser As String, strPassword As String)&lt;br /&gt;  Dim strConOracle, oConOracle, oRsOracle&lt;br /&gt;  Dim StrResult As String&lt;br /&gt;  &lt;br /&gt;  StrResult = ""&lt;br /&gt;  &lt;br /&gt;  strConOracle = "Driver={Microsoft ODBC for Oracle}; " &amp; _&lt;br /&gt;         "CONNECTSTRING=(DESCRIPTION=" &amp; _&lt;br /&gt;         "(ADDRESS=(PROTOCOL=TCP)" &amp; _&lt;br /&gt;         "(HOST=" &amp; strHost &amp; ")(PORT=1521))" &amp; _&lt;br /&gt;         "(CONNECT_DATA=(SERVICE_NAME=" &amp; strDatabase &amp; "))); uid=" &amp; strUser &amp; " ;pwd=" &amp; strPassword &amp; ";"&lt;br /&gt;  Set oConOracle = CreateObject("ADODB.Connection")&lt;br /&gt;  Set oRsOracle = CreateObject("ADODB.Recordset")&lt;br /&gt;  oConOracle.Open strConOracle&lt;br /&gt;  Set oRsOracle = oConOracle.Execute(strSQL)&lt;br /&gt;  Do While Not oRsOracle.EOF&lt;br /&gt;      If StrResult &lt;&gt; "" Then&lt;br /&gt;        StrResult = StrResult &amp; Chr(10) &amp; oRsOracle.Fields(0).Value&lt;br /&gt;      Else&lt;br /&gt;        StrResult = oRsOracle.Fields(0).Value&lt;br /&gt;      End If&lt;br /&gt;    oRsOracle.MoveNext&lt;br /&gt;  Loop&lt;br /&gt;  oConOracle.Close&lt;br /&gt;  Set oRsOracle = Nothing&lt;br /&gt;  Set oConOracle = Nothing&lt;br /&gt;  ORAQUERY = StrResult&lt;br /&gt;End Function&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 10 Sep 2007 15:26:22 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4518</guid>
      <author>bouffon69 (Sylvain Le Courtois)</author>
    </item>
    <item>
      <title>VBA procedure to pen an Excel workbook and refresh all datas in the QueryTables and PivotTable objects</title>
      <link>http://snippets.dzone.com/posts/show/4503</link>
      <description>// description of your code here&lt;br /&gt;// Can also use the Workbook Open event ( Private Sub Workbook_Open() )&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Sub Auto_Open()&lt;br /&gt;Application.DisplayAlerts = False&lt;br /&gt;    ChDir "T:\EXPLOIT\TSMENV\EXCEL\politiques"&lt;br /&gt;    Workbooks.Open Filename:="t:\EXPLOIT\TSMENV\EXCEL\politiques\politiques.xls", _&lt;br /&gt;        UpdateLinks:=3&lt;br /&gt;    For i = 1 To ActiveWorkbook.PivotCaches.Count&lt;br /&gt;        ActiveWorkbook.PivotCaches(i).RefreshOnFileOpen = False&lt;br /&gt;    Next&lt;br /&gt;    For i = 1 To ActiveWorkbook.Sheets.Count&lt;br /&gt;        For j = 1 To ActiveWorkbook.Sheets(i).QueryTables.Count&lt;br /&gt;            ActiveWorkbook.Sheets(i).QueryTables(j).RefreshOnFileOpen = False&lt;br /&gt;        Next&lt;br /&gt;    Next&lt;br /&gt;    ActiveWorkbook.RefreshAll&lt;br /&gt;    ActiveWorkbook.RefreshAll&lt;br /&gt;    ActiveWorkbook.RefreshAll&lt;br /&gt;    ActiveWorkbook.Save&lt;br /&gt;    ActiveWindow.Close&lt;br /&gt;    Application.Quit&lt;br /&gt;End Sub&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 07 Sep 2007 07:44:29 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4503</guid>
      <author>bouffon69 (Sylvain Le Courtois)</author>
    </item>
    <item>
      <title>Excel object</title>
      <link>http://snippets.dzone.com/posts/show/4317</link>
      <description>// Excel object&lt;br /&gt;&lt;code&gt;&lt;br /&gt;// 'create object&lt;br /&gt;Set excelobj = CreateObject( "Excel.Application")&lt;br /&gt;Set exp_data_workbook=excelobj.workbooks.open("c:\debug_expected.xls")&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'get the sheet count&lt;br /&gt;exp_sheetcnt=exp_data_workbook.Sheets.Count&lt;br /&gt;	&lt;br /&gt;&lt;br /&gt;'select a sheet&lt;br /&gt;For i = 1 to exp_sheetcnt&lt;br /&gt;	sheet_tblname=exp_data_workbook.Sheets(i).Name&lt;br /&gt;	If  UCASE(Trim(sheet_tblname)) = "Sheet_name" Then&lt;br /&gt;		exp_data_workbook.Sheets(i).select&lt;br /&gt;&lt;br /&gt;		'once selected set the range object	&lt;br /&gt;		set exp_rangeobj=exp_data_workbook.Sheets(i).UsedRange&lt;br /&gt;	end if&lt;br /&gt;next&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'Get the column count for the &lt;br /&gt;&lt;br /&gt;columncnt=exp_rangeobj.columns.count&lt;br /&gt;&lt;br /&gt;'find  the column index of  the column column_name&lt;br /&gt;		For i=1 to columncnt&lt;br /&gt;			colname=exp_rangeobj.cells(1,i).value&lt;br /&gt;			If UCASE(Trim(colname)) = "column_name" Then&lt;br /&gt;				pos_id_idx = i&lt;br /&gt;				Exit For&lt;br /&gt;			End If&lt;br /&gt;		Next		&lt;br /&gt;&lt;br /&gt;'proceess the value from that column&lt;br /&gt;&lt;br /&gt;rowcnt=exp_rangeobj.rows.count&lt;br /&gt;&lt;br /&gt;		'Strat reading the values from the 2nd row since the first row contains the column names.&lt;br /&gt;		If rowcnt &gt; 1 Then&lt;br /&gt;			For i=2 to rowcnt				 &lt;br /&gt;				'process the expected file row if it has a value&lt;br /&gt;				If  Len(Trim(exp_rangeobj.cells(i,1).value))&gt;0 Then &lt;br /&gt;					posIndex = (exp_rangeobj.cells(i,pos_id_idx).value) -1&lt;br /&gt;				end if&lt;br /&gt;			next &lt;br /&gt;		end if&lt;br /&gt;		&lt;/code&gt;</description>
      <pubDate>Wed, 18 Jul 2007 14:14:08 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4317</guid>
      <author>sarunbe (Arun Kumar)</author>
    </item>
    <item>
      <title>Create an SQLite Database from an Excel Workbook with Ruby</title>
      <link>http://snippets.dzone.com/posts/show/4215</link>
      <description>From the &lt;a href="http://rubyonwindows.blogspot.com/"&gt;Ruby on Windows&lt;/a&gt; blog.&lt;br /&gt;&lt;br /&gt;Here's a brief, unpolished snippet of code that reads data from an open Excel workbook and creates an SQLite database with a table for each worksheet in the Excel workbook:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;require 'win32ole'&lt;br /&gt;require 'sqlite3'&lt;br /&gt;&lt;br /&gt;#   Connect to a running instance of Excel&lt;br /&gt;xl = WIN32OLE.connect('Excel.Application')&lt;br /&gt;#   Get the active workbook&lt;br /&gt;wb = xl.ActiveWorkbook&lt;br /&gt;#   Create the SQLite3 database&lt;br /&gt;db = SQLite3::Database.new('excel.db')&lt;br /&gt;#   Create a database table for each worksheet &lt;br /&gt;#   in the workbook&lt;br /&gt;wb.Worksheets.each do |ws|&lt;br /&gt;    #   Grab all values from worksheet into a &lt;br /&gt;    #   2-dimensional array&lt;br /&gt;    data = ws.UsedRange.Value&lt;br /&gt;    #   Grab first row of data to use as field names&lt;br /&gt;    field_names = data.shift&lt;br /&gt;    #   Create database table using worksheet name and &lt;br /&gt;    #   field names&lt;br /&gt;    db.execute("CREATE TABLE [#{ws.Name}] \&lt;br /&gt;        ( #{field_names.join(',')} );")&lt;br /&gt;    #   For each row of data...&lt;br /&gt;    data.each do |row|&lt;br /&gt;        #   ...single-quote all field values...&lt;br /&gt;        row.collect! { |f| f = "'" + f.to_s + "'" }&lt;br /&gt;        #   ...and insert a new record into the &lt;br /&gt;        #   database table&lt;br /&gt;        db.execute("INSERT INTO [#{ws.Name}] VALUES \&lt;br /&gt;            ( #{row.join(',')} );")&lt;br /&gt;    end&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Further discussion can be found &lt;a href="http://rubyonwindows.blogspot.com/2007/03/ruby-excel-and-sqlite-instead-of-ms.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;</description>
      <pubDate>Wed, 27 Jun 2007 14:16:07 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4215</guid>
      <author>dmullet (David Mullet)</author>
    </item>
    <item>
      <title>Detect a field edit in Excel and refresh a Query</title>
      <link>http://snippets.dzone.com/posts/show/3613</link>
      <description>&lt;code&gt;&lt;br /&gt;Private Sub Worksheet_Change(ByVal Target As Range)&lt;br /&gt;    Dim wks As Worksheet&lt;br /&gt;    Set wks = ActiveSheet&lt;br /&gt;&lt;br /&gt;    If Target.Row = 1 And Target.Column = 1 Then&lt;br /&gt;      wks.QueryTables(1).Refresh&lt;br /&gt;    End If&lt;br /&gt;&lt;br /&gt;    Set wks = Nothing&lt;br /&gt;End Sub&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 02 Mar 2007 04:29:25 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3613</guid>
      <author>davetrane (David Davis)</author>
    </item>
    <item>
      <title>Script Excel in Ruby</title>
      <link>http://snippets.dzone.com/posts/show/3610</link>
      <description>&lt;code&gt;&lt;br /&gt;require 'win32ole'&lt;br /&gt;excel = WIN32OLE.new('excel.application')&lt;br /&gt;excel.visible = true&lt;br /&gt;excel.workbooks.open(file_path) # absolute file path&lt;br /&gt;excel.range('A1').value = 'Hello, world.' # get/set value&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 01 Mar 2007 14:18:31 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3610</guid>
      <author>timmorgan (Tim Morgan)</author>
    </item>
    <item>
      <title>VBA DDE WORD EXCEL</title>
      <link>http://snippets.dzone.com/posts/show/3112</link>
      <description>// This is just sample code of some dde commands&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Sub RUNEXCELMACRO()&lt;br /&gt;'RUN MACRO&lt;br /&gt;aChan = DDEInitiate(App:="Excel", Topic:="System")&lt;br /&gt;DDEExecute Channel:=aChan, Command:="[Run(" &amp; Chr(34) &amp; _&lt;br /&gt;    "Personal.xls!Macro1" &amp; Chr(34) &amp; ")]"&lt;br /&gt;DDETerminate Channel:=aChan&lt;br /&gt;'POKE&lt;br /&gt;Chan = DDEInitiate(App:="Excel", Topic:="System")&lt;br /&gt;DDEExecute Channel:=Chan, Command:="[OPEN(" &amp; Chr(34) _&lt;br /&gt;    &amp; "C:\Sales.xls" &amp; Chr(34) &amp; ")]"&lt;br /&gt;DDETerminate Channel:=Chan&lt;br /&gt;Chan = DDEInitiate(App:="Excel", Topic:="Sales.xls")&lt;br /&gt;DDEPoke Channel:=Chan, Item:="R1C1", Data:="1996 Sales"&lt;br /&gt;DDETerminate Channel:=Chan&lt;br /&gt;'This example opens the Microsoft Excel workbook Book1.xls and retrieves the contents of cell R1C1.&lt;br /&gt;Chan = DDEInitiate(App:="Excel", Topic:="System")&lt;br /&gt;DDEExecute Channel:=Chan, Command:="[OPEN(" &amp; Chr(34) _&lt;br /&gt;    &amp; "C:\My Documents\Book1.xls" &amp; Chr(34) &amp; ")]"&lt;br /&gt;DDETerminate Channel:=Chan&lt;br /&gt;Chan = DDEInitiate(App:="Excel", Topic:="C:\DATA\SBS.xls")&lt;br /&gt;msg = DDERequest(Channel:=Chan, Item:="R2C1")&lt;br /&gt;msg = msg &amp; " " &amp; DDERequest(Channel:=Chan, Item:="R2C2")&lt;br /&gt;MsgBox msg&lt;br /&gt;DDETerminateAll&lt;br /&gt;'This example opens a channel to the System topic in Microsoft Excel and then uses the Topics item to return a list of available topics. The example inserts the topic list, which includes all open workbooks, after the selection.&lt;br /&gt;aChan = DDEInitiate(App:="Excel", Topic:="System")&lt;br /&gt;TOPICLIST = DDERequest(Channel:=aChan, Item:="Topics")&lt;br /&gt;Selection.InsertAfter TOPICLIST&lt;br /&gt;DDETerminate Channel:=aChan&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 08 Dec 2006 22:50:58 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3112</guid>
      <author>millerjohneric (John Miller)</author>
    </item>
    <item>
      <title>Script Excel from Python</title>
      <link>http://snippets.dzone.com/posts/show/2036</link>
      <description>A quick and dirty class for working with Excel via COM in Python. By far, not all of the power of Excel is available here, but it's a good start for simple tasks.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;from win32com.client import constants, Dispatch&lt;br /&gt;import pythoncom&lt;br /&gt;import os&lt;br /&gt;&lt;br /&gt;borderTop = 3&lt;br /&gt;borderBottom = 4&lt;br /&gt;borderLeft = 1&lt;br /&gt;borderRight = 2&lt;br /&gt;borderSolid = 1&lt;br /&gt;borderDashed = 2&lt;br /&gt;borderDotted = 3&lt;br /&gt;colorBlack = 1&lt;br /&gt;directionUp = -4162&lt;br /&gt;directionDown = -4121&lt;br /&gt;directionLeft = -4131&lt;br /&gt;directionRight = -4152&lt;br /&gt;&lt;br /&gt;class ExcelDocument(object):&lt;br /&gt;  """&lt;br /&gt;  Some convenience methods for Excel documents accessed&lt;br /&gt;  through COM.&lt;br /&gt;  """&lt;br /&gt;  &lt;br /&gt;  def __init__(self, visible=False):&lt;br /&gt;    self.app = Dispatch("Excel.Application")&lt;br /&gt;    self.app.Visible = visible&lt;br /&gt;    self.sheet = 1&lt;br /&gt;  &lt;br /&gt;  def new(self, filename=None):&lt;br /&gt;    """&lt;br /&gt;    Create a new Excel workbook. If 'filename' specified,&lt;br /&gt;    use the file as a template.&lt;br /&gt;    """&lt;br /&gt;    self.app.Workbooks.Add(filename)&lt;br /&gt;  &lt;br /&gt;  def open(self, filename):&lt;br /&gt;    """&lt;br /&gt;    Open an existing Excel workbook for editing.&lt;br /&gt;    """&lt;br /&gt;    self.app.Workbooks.Open(filename)&lt;br /&gt;  &lt;br /&gt;  def set_sheet(self, sheet):&lt;br /&gt;    """&lt;br /&gt;    Set the active worksheet.&lt;br /&gt;    """&lt;br /&gt;    self.sheet = sheet&lt;br /&gt;  &lt;br /&gt;  def get_range(self, range):&lt;br /&gt;    """&lt;br /&gt;    Get a range object for the specified range or single cell.&lt;br /&gt;    """&lt;br /&gt;    return self.app.ActiveWorkbook.Sheets(self.sheet).Range(range)&lt;br /&gt;  &lt;br /&gt;  def set_value(self, cell, value=''):&lt;br /&gt;    """&lt;br /&gt;    Set the value of 'cell' to 'value'.&lt;br /&gt;    """&lt;br /&gt;    self.get_range(cell).Value = value&lt;br /&gt;  &lt;br /&gt;  def get_value(self, cell):&lt;br /&gt;    """&lt;br /&gt;    Get the value of 'cell'.&lt;br /&gt;    """&lt;br /&gt;    value = self.get_range(cell).Value&lt;br /&gt;    if isinstance(value, tuple):&lt;br /&gt;      value = [v[0] for v in value]&lt;br /&gt;    return value&lt;br /&gt;  &lt;br /&gt;  def set_border(self, range, side, line_style=borderSolid, color=colorBlack):&lt;br /&gt;    """&lt;br /&gt;    Set a border on the specified range of cells or single cell.&lt;br /&gt;    'range' = range of cells or single cell&lt;br /&gt;    'side' = one of borderTop, borderBottom, borderLeft, borderRight&lt;br /&gt;    'line_style' = one of borderSolid, borderDashed, borderDotted, others?&lt;br /&gt;    'color' = one of colorBlack, others?&lt;br /&gt;    """&lt;br /&gt;    range = self.get_range(range).Borders(side)&lt;br /&gt;    range.LineStyle = line_style&lt;br /&gt;    range.Color = color&lt;br /&gt;  &lt;br /&gt;  def sort(self, range, key_cell):&lt;br /&gt;    """&lt;br /&gt;    Sort the specified 'range' of the activeworksheet by the&lt;br /&gt;    specified 'key_cell'.&lt;br /&gt;    """&lt;br /&gt;    range.Sort(Key1=self.get_range(key_cell), Order1=1, Header=0, OrderCustom=1, MatchCase=False, Orientation=1)&lt;br /&gt;  &lt;br /&gt;  def hide_row(self, row, hide=True):&lt;br /&gt;    """&lt;br /&gt;    Hide the specified 'row'.&lt;br /&gt;    Specify hide=False to show the row.&lt;br /&gt;    """&lt;br /&gt;    self.get_range('a%s' % row).EntireRow.Hidden = hide&lt;br /&gt;  &lt;br /&gt;  def hide_column(self, column, hide=True):&lt;br /&gt;    """&lt;br /&gt;    Hide the specified 'column'.&lt;br /&gt;    Specify hide=False to show the column.&lt;br /&gt;    """&lt;br /&gt;    self.get_range('%s1' % column).EntireColumn.Hidden = hide&lt;br /&gt;  &lt;br /&gt;  def delete_row(self, row, shift=directionUp):&lt;br /&gt;    """&lt;br /&gt;    Delete the entire 'row'.&lt;br /&gt;    """&lt;br /&gt;    self.get_range('a%s' % row).EntireRow.Delete(Shift=shift)&lt;br /&gt;  &lt;br /&gt;  def delete_column(self, column, shift=directionLeft):&lt;br /&gt;    """&lt;br /&gt;    Delete the entire 'column'.&lt;br /&gt;    """&lt;br /&gt;    self.get_range('%s1' % column).EntireColumn.Delete(Shift=shift)&lt;br /&gt;    &lt;br /&gt;  def fit_column(self, column):&lt;br /&gt;    """&lt;br /&gt;    Resize the specified 'column' to fit all its contents.&lt;br /&gt;    """&lt;br /&gt;    self.get_range('%s1' % column).EntireColumn.AutoFit()&lt;br /&gt;  &lt;br /&gt;  def save(self):&lt;br /&gt;    """&lt;br /&gt;    Save the active workbook.&lt;br /&gt;    """&lt;br /&gt;    self.app.ActiveWorkbook.Save()&lt;br /&gt;  &lt;br /&gt;  def save_as(self, filename, delete_existing=False):&lt;br /&gt;    """&lt;br /&gt;    Save the active workbook as a different filename.&lt;br /&gt;    If 'delete_existing' is specified and the file already&lt;br /&gt;    exists, it will be deleted before saving.&lt;br /&gt;    """&lt;br /&gt;    if delete_existing and os.path.exists(filename):&lt;br /&gt;      os.remove(filename)&lt;br /&gt;    self.app.ActiveWorkbook.SaveAs(filename)&lt;br /&gt;  &lt;br /&gt;  def print_out(self):&lt;br /&gt;    """&lt;br /&gt;    Print the active workbook.&lt;br /&gt;    """&lt;br /&gt;    self.app.Application.PrintOut()&lt;br /&gt;  &lt;br /&gt;  def close(self):&lt;br /&gt;    """&lt;br /&gt;    Close the active workbook.&lt;br /&gt;    """&lt;br /&gt;    self.app.ActiveWorkbook.Close()&lt;br /&gt;  &lt;br /&gt;  def quit(self):&lt;br /&gt;    """&lt;br /&gt;    Quit Excel.&lt;br /&gt;    """&lt;br /&gt;    return self.app.Quit()&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 16 May 2006 00:07:51 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2036</guid>
      <author>timmorgan (Tim Morgan)</author>
    </item>
  </channel>
</rss>
