How to run python code from excel using vba

Поділитися
Вставка
  • Опубліковано 7 лют 2025

КОМЕНТАРІ • 6

  • @andreasnohr11
    @andreasnohr11 9 місяців тому

    Short, clear and easy.
    Well done sir, great help. ^^

  • @PrashaantRannjan
    @PrashaantRannjan Рік тому +1

    Can we do this with jupyter notebook?
    If yes, how to change path of jupyter notebook?

    • @NodesAutomations
      @NodesAutomations  Рік тому

      what's point of running jupyter notebook from excel? If you're only interested in running code than just convert notebook file to *.py file. I am not regular user of jupyter notebook so can't give perfect answer. what you can do is figure out command to run notebook using command line and execute that command from vba , ref: discourse.jupyter.org/t/how-to-run-a-notebook-using-command-line/3475

  • @vitorialucenaa
    @vitorialucenaa 7 місяців тому

    if I execute the .py throught an ide, it writes in excel but when I execute from the vba button it doesnt.
    my code is just like yours. is there anything I can do to fix it?

    • @NodesAutomations
      @NodesAutomations  2 місяці тому

      it's hard to see what's problem without direct access to your code or pc. first try to run your script using command prompt. Use Chatgpt for help.