name

WIN32OLE_VARIABLE#name
Instance Public methods

Returns the name of variable.

tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'XlSheetType')
variables = tobj.variables
variables.each do |variable|
  puts "#{variable.name}"
end

The result of above script is following:
  xlChart
  xlDialogSheet
  xlExcel4IntlMacroSheet
  xlExcel4MacroSheet
  xlWorksheet

to_s

doc_ruby_on_rails
2015-06-13 05:15:33
Comments
Leave a Comment

Please login to continue.