DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Ruby And Excel: Extracting Cell Comments
From the <a href="http://rubyonwindows.blogspot.com">Ruby on Windows</a> blog.
require 'win32ole' xl = WIN32OLE.connect('Excel.Application') ws = xl.ActiveSheet cell = ws.Range('B2') comment = cell.Comment text = comment.Text
Further details and discussion <a href="http://rubyonwindows.blogspot.com/2009/05/ruby-excel-extracting-cell-comments.html">here</a>.