You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: badexcel.rb
    path of file: ./repos/BHR_Labs/ch08
    
    the code of the file until where you have to start completion: #!/usr/bin/env ruby
# ===============
    
def evil_excel(vbs_file, excel_file)
  excel          = WIN32OLE.new('Excel.Application')
  excel.visible  = false
  workbook       = excel.workbooks.add
  worksheet      = workbook.Worksheets(1)
  worksheet.name = "Black Hat Ruby Sheet"
  code_mod       = workbook.VBProject.VBComponents.Item('ThisWorkbook')
  fileformat     = 52
  vbs_file.each_line(chomp: true)
          .with_index { |loc, ln| code_mod.CodeModule.InsertLines(ln + 1, loc) }
  workbook.SaveAs(excel_file, fileformat)
  excel.ActiveWorkbook.Close(0)
  excel.Quit()
end