Export a table or DAX query from Power Pivot to CSV using VBA Written by Kasper de Jonge on 24 September 2014.