> I can get file.write("'%s',") % xlSht.Cells(row,1).Value > to work..
file.write("'%s'," % xlSht.Cells(row,1).Value) Try that.... The string formatting must happen inside the parens. BTW using 'file' as a variab;e is not good since file is a built-in function name (albeit an alias for open) and could confuse a reader.. Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor