简体   繁体   中英

Is there a way to run a python script to in excel to update a cell range?

I have a web scraper script in python that clicks and downloads a csv file from a website.

I would like to:

  1. Pass a parameter from excel to trigger the python script based on user selection

  2. trigger the download/web scraper script from Excel and then populate the cell range concerned based on the downloaded file

Welcome to other solutions other than what I have now.

Maybe your python code should read your excel spreadsheet and act upon the changes. Might want to check https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html . A more straightforward solution might exist, thou.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM