From: Aldric Giacomoni Date: 2008-11-17T16:47:05+09:00 Subject: Tread on eggs.. Using metaprogramming to set a variable name? Something like .. require 'spreadsheet' include Spreadsheet workbook = Spreadsheet::Workbook.new # I create a workbook item in which I will add spreadsheets.. How many # spreadsheets? That is the trick! loc = { 1 => 'USA', 2 => 'Europe', 3=> 'Rest_of_world' } loc.each_value do |name| workbook.create_worksheet( :name => name ) end I'd like, in the end, to have (in this example) 3 worksheets named 'USA', 'Europe' and 'Rest_of_world'. Is this possible? I can't wrap my head around it.. But I feel like it must be possible. Thanks, --Aldric