$data = []
$data = worksheet.Range('a1:z1')'text' # The data is in cell a1.
excel'Visible' = false # hide the spreadsheet from view
workbook.close
excel.Quit

# Insert the data read from the spreadsheet into the text field
#$ie.text_field(:name, 'TEST').set $data
$data.length do |x|
ie.goto('http://' + $data[x])
end

$data is not a good idea as the $ stands for global variable. If not needed to 
be global remove them and replace with @ or @@ as your definitions needs.
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to