--- loncom/interface/Attic/lonspreadsheet.pm	2003/01/30 21:35:13	1.167
+++ loncom/interface/Attic/lonspreadsheet.pm	2003/02/13 21:57:48	1.169
@@ -1,5 +1,5 @@
 #
-# $Id: lonspreadsheet.pm,v 1.167 2003/01/30 21:35:13 matthew Exp $
+# $Id: lonspreadsheet.pm,v 1.169 2003/02/13 21:57:48 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1744,6 +1744,7 @@ sub calcsheet {
     $self->sett();
     my $result =  $self->{'safe'}->reval('&calc();');
     %{$self->{'values'}} = %{$self->{'safe'}->varglob('sheet_values')};
+#    $self->logthis($self->get_errorlog());
     return $result;
 }
 
@@ -2540,6 +2541,7 @@ sub export_sheet_as_excel {
             }
             next if ($row_is_empty);
         }
+        $worksheet->write($rows_output,$cols_output++,$rownum);
         $worksheet->write($rows_output,$cols_output++,$label);
         if (ref($label)) {
             $cols_output = (scalar(@$label));