Maybe the constant - #DEFINE XLSRCEXTERNAL 0 - should it be 4 ? SourceType . 1 = xlSrcRange . 2 = xlSrcXml . 3 = xlSrcQuery . 4 = xlSrcExternal
-----Original Message----- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Alan Bourke Sent: Saturday, 14 June 2025 12:55 AM To: profoxt...@leafe.com Subject: Re: Automatic Excel Power Query CSV Import On Fri, 13 Jun 2025, at 3:53 PM, Alan Bourke wrote: > Yeah, works OK from the command window. It adds the query string Correction - it does NOT work OK from command window. -- Alan Bourke alanpbourke (at) fastmail (dot) fm [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/006301dbdcb1$fd421490$f7c63db0$@ozemail.com.au ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.