web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Getting Data from Macr...
Power Apps
Suggested Answer

Getting Data from Macro Enabled Excel Workbook

(0) ShareShare
ReportReport
Posted on by

Any advice on what I should do to get my data from and .xlsm file. When I use the data connector to connect to the file everything seems to work but when I try to retrieve the data it shows blank. I have saved the same table in a normal .xlsx file as a work around  and it works that way but I would prefer to have this work from one location ( to  keep things as simple as possible for others to maintain ).

 

I tried to retrieve it through one drive as well as excel for business. Both ways the .xls file worked and the .xlsm file did not.

 

Any help would be appreciated Thanks

Categories:
I have the same question (0)
  • mrleetyler Profile Picture
    270 on at
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@Trent-Stokes,

    Based on the issue that you mentioned, do you want to access your xlsm file in PowerApps?

    Could you please share a bit more about the scenario?

    Actually, you are right. The .xlsm file is not supported in PowerApps currently. Even though the Excel Online(Business) connector can only get contents of xls and xlsx files. Working with macro-enabled files is currently not supported yet.

    If you want this feature to be added, you could raise an idea in our idea forum.

    Power Apps Ideas - Power Platform Community (microsoft.com)

    As an alternative solution, you could consider renaming the file type. Please modify the file extensions as below:

    FileName.xls

    Hope it could help.

    Regards,

    Qi

  • reveur007 Profile Picture
    126 on at

    Hi ,

    Thanks for your response. It is not working for me!

    I have a large excel [macro-enable file, .xlsm] file of which I need 1 sheet/page of data. Since Power Apps can't connect to .xlsm file, I tried to save it as .xlsx/ .xls -but then it complains that the file size is too big.  

    I just copied that worksheet [even tried just to copy the data] and created a new .xlsx workbook. I selected the data and then selected "Format as Table"; I didn't get any small window popping up with a check box with "My table has header"! Also, the table is detected as a Pivot table. I saved the file and closed.  Tried to connect from Power Apps [with Add data ...], but when I selected the file, I am still getting the error!

     

    reveur007_0-1698428236612.png

     

     

    Looks like it can't find the table.

    I tried to find in "Design" tab if the table has a name/ if I have to rename the table! But I can't find the "Table Name" piece. There is always MS updates happening, not sure where the "Table name" piece is hiding now!

    I would appreciate it if you could help in this. Many thanks!

  • Suggested answer
    takolota1 Profile Picture
    4,980 Moderator on at
    If you want to get data from an Excel sheet on an xlsm file, then this Azure Function template may work: https://community.powerplatform.com/galleries/gallery-posts/?postid=eea06380-8483-ef11-ac21-7c1e5201b42f

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard