+ Reply to Thread
Results 1 to 7 of 7

Power Query; How to use Excel.Workbook Function

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    608

    Power Query; How to use Excel.Workbook Function

    Hi,
    I've been using the Excel.CurrentWorkbook function to bring Tables , named ranges etc into power query and it's fairly straight forward.
    If I have a workbook saved on the desktop and want to use 'Excel.Workbook , how do I do this,
    suppose I open Excel , new worksheet, get data ; blank query and in the formula bar; Excel.Workbook( ? do I enter the file path? When it say binary workbook do I just type 'yes' or true or something else? , I've been looking at the MS DOCs site and trying various things but none seem to work.
    I haven't attached anything as it's not a problem with a specific file or workbook more a general enquiry.


    Richard.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Power Query; How to use Excel.Workbook Function

    You could just do a query from a saved workbook and examine the syntax produced.
    Rory

  3. #3
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    608

    Re: Power Query; How to use Excel.Workbook Function

    Hi Rorya,
    Yes, but I still not sure how to bring in just sheets ; I've looked at the code after using 'From file' but that's not much help when
    it comes to editing it to just bring in worksheets for example.
    BTW I like your Lab, at least think it's a Lab.

    Rd

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Power Query; How to use Excel.Workbook Function

    What do you mean by 'bring in just sheets'? Are you trying to get data that is NOT in tabular or named range format?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Power Query; How to use Excel.Workbook Function

    Did you try this?

    Please Login or Register  to view this content.
    Last edited by AliGW; 10-29-2021 at 10:58 AM. Reason: Typo

  6. #6
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    608

    Re: Power Query; How to use Excel.Workbook Function

    No, I hadn't but I have now and yes it's brought in what I expected.
    Thank you very much.
    Provided it'll let me I'll give you a rating and close thread.

    Richard.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Power Query; How to use Excel.Workbook Function

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count function from top - Excel Power Query
    By zeko90 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2020, 04:23 AM
  2. [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
  3. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  4. [SOLVED] Power Query - load to workbook and create query table
    By jaryszek in forum Excel General
    Replies: 1
    Last Post: 12-10-2019, 11:09 AM
  5. Replies: 0
    Last Post: 07-03-2018, 05:33 PM
  6. 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
  7. Replies: 0
    Last Post: 04-05-2018, 01:16 AM

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