Thanks for the demo file Modular Export v1.2. Some more improvements: -robust for special TO naming (for example starting with special character or space in name): ExecuteSQL ( “SELECT “& $Headers &” FROM \”” & $TOName & “\””; “<>” ; “<>” ) -robust for CR in text fields…make it similar to native export in .csv format by substituting CR with char(11)=VT=Vertical Tab (before your substitute step of <> and <>): Substitute ( $SQL ; “¶” ; Char(11) ) Reply