for i = 1:num_worksheets # write in worksheet[i] cell (j,k) with variable var1 end