def store_password   #:nodoc:
    # Exit unless sheet protection and password have been specified
    return  unless protect? && @password

    record      = 0x0013               # Record identifier
    length      = 0x0002               # Bytes to follow

    wPassword   = @password            # Encoded password

    header      = [record, length].pack("vv")
    data        = [wPassword].pack("v")

    prepend(header, data)
  end
def store_password   #:nodoc:
    # Exit unless sheet protection and password have been specified
    return  unless protect? && @password

    record      = 0x0013               # Record identifier
    length      = 0x0002               # Bytes to follow

    wPassword   = @password            # Encoded password

    header      = [record, length].pack("vv")
    data        = [wPassword].pack("v")

    prepend(header, data)
  end
Write the worksheet PASSWORD record.