xlwings

How to get excel cell/row number of a value using python?

How to get excel cell/row number of a value using python? Question: I have dataframe like as shown below val 5 7 17 95 23 45 df = pd.read_clipboard() I would like to get the excel cell/index/row number for each of the value I was trying something like below but not sure whether I am …

Total answers: 2

Xlwings Excel and Windows Task Scheduler issues

Xlwings Excel and Windows Task Scheduler issues Question: I have a python script that runs perfectly when I manually run the python script. It opens a shared excel file, adds data to the bottom of the sheet in real time with other users in the file, auto saves and closes. However, when I schedule this …

Total answers: 2

xlwings RunPython with function arguments

xlwings RunPython with function arguments Question: I am trying to run the RunPython function from a button in excel. I would like the function to take a parameter from a box in excel, something like this: Sub ImportData() Dim choice As String choice = Range(“B2”).Value RunPython (“import Excel_module; Excel_module.importing_data(choice)”) End Sub Is this a possibility? …

Total answers: 2

Copy 1 column from 100 different Excel paths to 1 Excel file using XL wings

Copy 1 column from 100 different Excel paths to 1 Excel file using XL wings Question: wb=xw.Book() for i in ripPaths: wbtemp=xw.Book(i) my_values=wbtemp.sheets[‘sheet1’].range(‘B5:B4722’).options(ndim=2).value wb.sheets[‘sheet1’].range(“A1:A4722”).value=my_values I am trying to open 100 excel files I have on my disk successively using the for loop, and then copy the same column from each and paste it into another …

Total answers: 3

Can't install XLWings add-in into excel no matter what I do

Can't install XLWings add-in into excel no matter what I do Question: I really, really wanted to try this add-in for excel, but no matter what myself or my colleagues (to include one of my information systems professors) tried, we couldn’t get it to work. Excel, in order to use an add in, must have …

Total answers: 3

Export chart as image with python xlwings

Export chart as image with python xlwings Question: I have been working on creating Excel reports automatically using Python and xlwings. Within these reports there are multiple charts and graphs which I now want to use in a pptx presentation keeping the same formatting and design. For the generation of the pptx I am currently …

Total answers: 2

Open a Workbook with XLWINGS without making it visible

Open a Workbook with XLWINGS without making it visible Question: I am starting to use XLWings (not that I like Excel, at all, but it is something I HAVE TO do). The thing is that I cannot find the way to make Python open a Workbook without showing it. It seems the constructor for Workbooks …

Total answers: 5

Set border using Python xlwings

Set border using Python xlwings Question: Is there a way to set border lines for an Excel file from Python using xlwings? I was looking at the documentation but cannot figure out. I want to create a file like this using xlwings Asked By: E.K. || Source Answers: As far as I know, this isn’t …

Total answers: 4

How to reference Excel table column names in XLWings?

How to reference Excel table column names in XLWings? Question: Does XLWings allow my to interact with Excel tables (available in Excel 2007 and later via menu or ctrl+t) by table and column names? This does exist in the young, open sourceproject, Pyvot (https://pypi.python.org/pypi/Pyvot). I am hopeful that it is possible in XLWings now or …

Total answers: 1