Feedback by UserVoice

How can we improve Excel for Windows (Desktop Application)?

Python as an Excel scripting language

Let us do scripting with Python! Yay! Not only as an alternative to VBA, but also as an alternative to field functions (=SUM(A1:A2))

6,103 votes
Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)

We’ll send you updates on this idea

Daniel shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

Wow.

Thank you to all those participated in our survey. What an amazing number of responses, many of them with very deep content. We’re processing the over ten thousand responses(!), and already appreciate the time so many of you took to answer with passion and experience.

Please know this survey is used to help influence various topics – both on Python as well as other related topics that the comments started to bleed into. Given the passion, I want to be clear this remains an area of exploration for us, without any specific timeline.

We’ll provide updates as we progress on this feature request.

Thanks!

Ashvini Sharma
Lead Program Manager
Excel

423 comments

Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
Submitting...
  • Anonymous commented  ·   ·  Flag as inappropriate

    OK. Truth be told, despite my voting to have Python scripting in Excel, I have since switched jobs, and while I use Python everyday, it's been years since I've opened Excel.

  • Emre Poyraz commented  ·   ·  Flag as inappropriate

    hello,

    I dont think Python should replace Excel functions. Excel functions are very mature and popular.

    But how about having a Python based macro ability for excel? This could be an add-on. Python modules for Excel are not good enough to replace VBA.

  • Peter F commented  ·   ·  Flag as inappropriate

    VBA is an ancient programming language, using it is no longer practical. IMHO if Microsoft wants to succeed, it needs to adopt to modern computing.

  • James commented  ·   ·  Flag as inappropriate

    I would love to see some proper Python scripting supported in Excel.

    Any updates on this please?

  • Ryan commented  ·   ·  Flag as inappropriate

    I can’t tell you how strongly I support this idea! Please make this a reality! 😍

  • Ffffff commented  ·   ·  Flag as inappropriate

    Microsoft does not give a **** about what any of you think. They will never add this feature. It’s been like three years or more since this was announced as an idea.

  • ad commented  ·   ·  Flag as inappropriate

    python together with the already known vba excel object model is my wet dream.
    Or, just improve VBA and the editor a little bit.

  • Kent Maxwell commented  ·   ·  Flag as inappropriate

    My recommendation is provided Python support in Power Query for Excel, just like it's being now offered in Power Query in Power BI. I do not understand why Power Query is not the same for both products. Why does Power BI get all the new love?

  • Paul Mulherin commented  ·   ·  Flag as inappropriate

    PyXLL looks very nice Tony!

    Sadly only half of our team use Office for Windows and the rest are running Office for Mac OSX so I'm still waiting for an official, Microsoft-supported Python solution that covers *both* versions of Excel... :-/

  • Tony Roberts commented  ·   ·  Flag as inappropriate

    You can use PyXLL, the Python Excel Add-In to do this. You can use it to write user defined function, macros, menus, RTD functions and customise the ribbon all in Python.

    See https://www.pyxll.com.

    You can use it to do anything you can in VBA and more, and it supports all versions of Python.

  • Anonymous commented  ·   ·  Flag as inappropriate

    Make it so.
    That would make excel really awesome.
    Combining the tools and easyness of python and the ease of visualisation of excel. Especially in a corporate-environment.

  • Anonymous commented  ·   ·  Flag as inappropriate

    Yes I agree. Any word yet? Not sure If it has been addressed but IMHO it also needs to integrate the macro recorder with python. The recorder is an excellent way to learn the Excel object model.

  • Alex Reed commented  ·   ·  Flag as inappropriate

    Now I can't speak for Mac users, but if you're a Windows' User, you can technically start integrating the whole VBA object model with Python.

    For example, if I want to copy between Excel & PowerPoint using Python I can do this with Win32 Python library, this allows us to plugin to the Windows' API and control different objects.

    One of the coolest things about this library is that if use it inside of a Jupyter notebook I can run Python code real time inside of my Excel workbook. This means I can make API calls, dump data into Excel or even upload data to a Python object.

    If, for example, you wanted to run Pandas real time inside of Excel this is also possible. The only reason I know this is I've written some scripts that will allow me to do this.

    Now the documentation for all of this is few and far between; it's just not covered very well. This is why I started making YouTube videos on it because it changes the way we can look at Office and I know people could benefit from it. Using Python with Excel VBA is one of those things for some reason that never got out, and I don't think people ever realized you could do it.

    If you want to check out the videos I made a playlist that covers some introduction topics:
    https://www.youtube.com/playlist?list=PLcFcktZ0wnNnf4eh5ObzPzoLFOzTiFVKa

← Previous 1 3 4 5 21 22

Feedback and Knowledge Base