Connecting Tech Pros Worldwide Forums | Help | Site Map

Delete Enitre column in excel using ruby code

Newbie
 
Join Date: Jan 2008
Posts: 17
#1: Apr 19 '09
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

Expert
 
Join Date: May 2007
Posts: 213
#2: Apr 20 '09

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