Delete Enitre column in excel using ruby code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • idealfellow
    New Member
    • Jan 2008
    • 21

    Delete Enitre column in excel using ruby code

    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
  • improvcornartist
    Recognized Expert Contributor
    • May 2007
    • 303

    #2
    I'm not sure about calling macros, but you can delete a column by using something like
    Code:
    cell.entireColumn.delete
    # or
    sheet.range('B1').entireColumn.delete

    Comment

    Working...