• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Extract Data with Power Query Using VBA

Nyavor Kennedy

New Member
I have a text file named text.txt and I want to write a vba code that will extract data from this file using power query, apply a filter on the column "Product" where the product to be filtered is "PLP" and then load the resulting data to a new worksheet. Any help?
 
Welcome to the forum.

No need for VBA to apply steps to PowerQuery. PowerQuery will reproduce steps applied within the editor.

Only piece of VBA needed is to refresh the query built using PowerQuery (if required, I generally have it set to refresh on workbook open, via Query property instead of VBA).

Upload sample workbook and the text file to get more specific help.
 
Back
Top