openpyxl Questions
4
Trying to open xlsm file using python
Below is the code :
import libraries
import openpyxl
from openpyxl import load_workbook
from openpyxl import Workbook
from openpyxl.styles import colors
from...
Frankish asked 9/1, 2019 at 9:16
5
A few of my users (all of whom use Mac) have uploaded an Excel into my application, which then rejected it because the file appeared to be empty. After some debugging, I've determined that the file...
Delisadelisle asked 8/7, 2020 at 17:55
3
Solved
I have a somewhat large .xlsx file - 19 columns, 5185 rows. I want to open the file, read all the values in one column, do some stuff to those values, and then create a new column in the same workb...
7
I have .xlsm file with a Macro function. I'm loading it using openpyxl and write some data to the file and finally want to save as a different .xlsm file.
To save the file as XLSM file I have used...
4
The title said it all :)
But still, I'm using the class Table from openpyxl.worksheet.table to define a table in excel file which I create. My problem is that the table that is created has Filter ...
Fieldsman asked 6/12, 2017 at 16:23
5
I have filled a worksheet with some data and I'm trying to make column widths to assume their best fit, as in here. Basically the kind of autofit that happens when you double-click the column width...
7
Solved
I have the following python code to write processed words into excel file. The words are about 7729
From openpyxl import *
book=Workbook ()
sheet=book.active
sheet.title="test"
for x in r...
7
Solved
I have a moderately large xlsx file (around 14 MB) and OpenOffice hangs trying to open it. I was trying to use openpyxl to read the content, following this tutorial. The code snippet is as follows:...
8
I'm trying to set wrap text. But when i using wrap text row doesn't change height automatically. How can I set auto-height row?
3
I'm using Python version 3.6 and the latest version of the openxlpy module (v2.4.8) on Windows.
I want to change certain font to bold in a cell, but I don't want all the text contained in the cell...
5
First stack overflow question here. Hope I do this correctly:
I need to use an external python library in AWS glue. "Openpyxl" is the name of the library.
I follow these directions: https://docs....
Avraham asked 2/10, 2019 at 16:55
7
Solved
I'm using openpyxl to put data validation to all rows that have "Default" in them. But to do that, I need to know how many rows there are.
I know there is a way to do that if I were using Iterable...
2
Solved
I can't figure out how to merge cells without using the format 'A1:A4'
I want to be able to use ws.cell(row=x,column=y) format to set the start and end points of the merge.
The code below demonst...
Asphalt asked 23/5, 2019 at 14:48
6
I'm trying to read data from an Excel sheet that contains merged cells.
When reading merged cells with openpyxl the first merged cell contain the value and the rest of the cells are empty.
I would ...
4
Solved
I would like to set the color of the bar in a bar chart with openpyxl. I created the following
data = Reference(sheet, min_col=3, min_row=6, max_col=4, max_row=10)
titles = Reference(sheet, min_c...
4
Solved
Is there an update to the library?
Before it worked perfectly, and today I updated and it no longer loads
I searched but I can't find any other option
17
I'm trying to open both an xlsx file and an xlsm file both give me the same error
badzipfile: file is not a zip file
here is what I'm typing:
import openpyxl
wb=openpyxl.load_workbook('c:\\us...
Unmusical asked 23/11, 2015 at 14:27
5
Solved
How could I retrieve
the column names (values of the cells in the first row) in an openpyxl Read-only worksheet?
City, Population, Country in the below example worksheet
all column names in ...
3
Solved
I am using Python 2.7 and am trying to run a program with openpyxl to work with xlsx files.
In the first line of code:
from openpyxl import Workbook
I get the following error when I run the pro...
Antefix asked 12/2, 2019 at 17:52
3
Solved
So, I tried to open an excel file with openpyxl with this line
wb_bs = openpyxl.load_workbook(filename=filepath)
And got this error:
C:\Users\T-Gamer\AppData\Local\Programs\Python\Python38-32\lib\...
3
Solved
I'm attempting to store a list of valid ip addresses in a cell using openpyxl. At the moment the data is simply placed into a cell, and usually overflows into other cells. Using the code below:
# ...
6
So this is my first time that I'm attempting to read from an Excel file and I'm trying to do so with the openpyxl module. My aim is to collate a dictionary with a nested list as its value. However,...
2
Solved
I'm attempting to replicate and automate a well used practice in work: I'm trying to place multiple images and text within a cell in openpyxl, however I can only anchor images to the top left of a ...
11
I want to pull only column A from my spreadsheet. I have the below code, but it pulls from all columns.
from openpyxl import Workbook, load_workbook
wb=load_workbook("/home/ilissa/Documents/Anaco...
12
I have a large amount of EXCEL files (i.e. 200) I would like to copy one specific worksheet from one workbook to another one. I have done some investigations and I couldn't find a way of doing it w...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.