method

setproperty

v1_8_7_72 - Show latest stable - Class: WIN32OLE
setproperty(...)
public

Sets property of OLE object. When you want to set property with argument, you can use this method.

   excel = WIN32OLE.new('Excel.Application')
   excel['Visible'] = true
   book = excel.workbooks.add
   sheet = book.worksheets(1)
   sheet.setproperty('Cells', 1, 2, 10) # => The B1 cell value is 10.