Connecting Tech Pros Worldwide Help | Site Map

Delete Enitre column in excel using ruby code

  #1  
Old April 19th, 2009, 02:32 PM
Newbie
 
Join Date: Jan 2008
Posts: 17
Hi All,
I need to delete entire column(GB) in excel using ruby code.
let me whether i should write some ruby code or is there a way to call an
excel macro from ruby
whichever is simpler or easy way to maintain.

cheers
  #2  
Old April 20th, 2009, 03:46 PM
Expert
 
Join Date: May 2007
Posts: 213

re: Delete Enitre column in excel using ruby code


I'm not sure about calling macros, but you can delete a column by using something like
Expand|Select|Wrap|Line Numbers
  1. cell.entireColumn.delete
  2. # or
  3. sheet.range('B1').entireColumn.delete
Reply