def repeat_columns(*args)
      if args[0] =~ /^\D/
        dummy, first_col, dummy, last_col = substitute_cellref(*args)
      else
        first_col, last_col = args
      end
      last_col ||= first_col

      area = "#{xl_col_to_name(first_col, 1)}:#{xl_col_to_name(last_col, 1)}"
      @page_setup.repeat_cols = "#{quote_sheetname(@name)}!#{area}"
    end
def repeat_columns(*args)
      if args[0] =~ /^\D/
        dummy, first_col, dummy, last_col = substitute_cellref(*args)
      else
        first_col, last_col = args
      end
      last_col ||= first_col

      area = "#{xl_col_to_name(first_col, 1)}:#{xl_col_to_name(last_col, 1)}"
      @page_setup.repeat_cols = "#{quote_sheetname(@name)}!#{area}"
    end
:call-seq:
   repeat_columns(first_col, last_col = nil)

 Set the columns to repeat at the left hand side of each printed page.

 For large Excel documents it is often desirable to have the first
 column or columns of the worksheet print out at the left hand side
 of each page. This can be achieved by using the repeat_columns()
 method. The parameters first_column and last_column are zero based.
 The last_column parameter is optional if you only wish to specify
 one column. You can also specify the columns using A1 column
 notation, see the note about {"Cell notation"}[#label-Cell+notation].

     worksheet1.repeat_columns(0)        # Repeat the first column
     worksheet2.repeat_columns(0, 1)     # Repeat the first two columns
     worksheet3.repeat_columns('A:A')    # Repeat the first column
     worksheet4.repeat_columns('A:B')    # Repeat the first two columns