def merge_cells(*args) #:nodoc:
    # Check for a cell reference in A1 notation and substitute row and column
    args = row_col_notation(args)

    record  = 0x00E5                    # Record identifier
    length  = 0x000A                    # Bytes to follow

    cref     = 1                        # Number of refs
    rwFirst  = args[0]                  # First row in reference
    colFirst = args[1]                  # First col in reference
    rwLast   = args[2] || rwFirst       # Last  row in reference
    colLast  = args[3] || colFirst      # Last  col in reference

    # Excel doesn't allow a single cell to be merged
    return if rwFirst == rwLast and colFirst == colLast

    # Swap last row/col with first row/col as necessary
    rwFirst,  rwLast  = rwLast,  rwFirst  if rwFirst  > rwLast
    colFirst, colLast = colLast, colFirst if colFirst > colLast

    store_simple(record, length, cref, rwFirst, rwLast, colFirst, colLast)
  end
def merge_cells(*args) #:nodoc:
    # Check for a cell reference in A1 notation and substitute row and column
    args = row_col_notation(args)

    record  = 0x00E5                    # Record identifier
    length  = 0x000A                    # Bytes to follow

    cref     = 1                        # Number of refs
    rwFirst  = args[0]                  # First row in reference
    colFirst = args[1]                  # First col in reference
    rwLast   = args[2] || rwFirst       # Last  row in reference
    colLast  = args[3] || colFirst      # Last  col in reference

    # Excel doesn't allow a single cell to be merged
    return if rwFirst == rwLast and colFirst == colLast

    # Swap last row/col with first row/col as necessary
    rwFirst,  rwLast  = rwLast,  rwFirst  if rwFirst  > rwLast
    colFirst, colLast = colLast, colFirst if colFirst > colLast

    store_simple(record, length, cref, rwFirst, rwLast, colFirst, colLast)
  end
:call-seq:
 merge_cells(first_row, first_col, last_row, last_col)

 This is an Excel97/2000 method. It is required to perform more complicated
 merging than the normal align merge in Format.pm