I need to export a query from PowerQuery to a *.csv
file so that another program can use it, but the 2 column data-set has about 5 million rows. Is there a procedure either within PQ/Excel or another of the standard MS Office suite which would allow me to simply save the table as a ''*.csv``? I tried using VBA, but it seems to only export the standard excel-sized file (~1 million rows). I could be doing it "wrong", but the VBA documentation I've found so far has not illuminated the correct procedure.
Edit: I've tried a variety of the snippets I found when searching for "export powerquery|worksheet with VBA", but this is the most recent:
Sub savesheet2()
Application.ScreenUpdating = False
ActiveSheet.Select
ActiveSheet.Copy
ActiveSheet.SaveAs Filename:="Device_Letter:\File_Location\name.csv", FileFormat:=6
Application.ScreenUpdating = True
ActiveWorkbook.Close
End Sub