Results 1 to 7 of 7

Getting Power Query data to an Excel worksheet

Threaded View

  1. #1
    Registered User
    Join Date
    03-30-2024
    Location
    Kansas City MO
    MS-Off Ver
    Excel 365
    Posts
    4

    Getting Power Query data to an Excel worksheet

    I'm having a bit of an issue with an Excel power query and VBA.

    In VBA:
    I create a new sheet in my workbook and name it.

    I get my data from a CSV file with the information I need into a power query in my workbook. I can see the query in the workbook and view the data, everything is there. It is also a connection only query. I don't need to worry about refreshing the data because each week the CSV file has a different name. Refreshing is irrelevant.

    Here is my issue. I want to use VBA code to take all the data in the query, all columns and all rows, and import it into the newly created sheet with the same formatting as if I was doing this all manually via the menu commands. Headers, Rows, shading, etc. Menu command: Data | From CSV | Choose CSV file | Load. Doing it manually creates a sheet with the name of the CSV file with, in my case, green shadings.

    Once I have it in a sheet, then the rest of my script will do some data manipulation, I.e., converting customer ID# to customer name, delete a few columns, and create and format a pivot table and pivot chart.

    Everything is working fine except putting the data from the query into a sheet.

    Any help would be appreciated.

    Thank you
    Michael.
    Last edited by MichaelMorris; 03-30-2024 at 08:29 PM. Reason: Added more information

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Power Query: data difference PQ screen vs Excel worksheet
    By jonas-martens in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2024, 08:32 AM
  2. Replies: 5
    Last Post: 10-31-2023, 11:12 AM
  3. [SOLVED] Why is my Excel file so big even though I uploaded the data using Power Pivot/Power Query?
    By Olivia Ludwig in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 09-21-2023, 05:18 AM
  4. [SOLVED] Power Query - excel formula translation into Power Query
    By afgi in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 02-19-2020, 03:38 AM
  5. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  6. Excel Power Query Refresh or Access Query - 2nd Query Run is faster
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2020, 10:16 AM
  7. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1