Python Forum
Excel: Apply formating of a sheet(file1) to another sheet(file2)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Excel: Apply formating of a sheet(file1) to another sheet(file2)
#1
Hello!

Does python offers the possibility of applying the formatting style from a sheet (from file1) to another sheet(from file2). I would like to this without opening the file and just apply the "format painter" or without trying using macros or VBA s.

This can be done by python or do I need to install additional plugins/add-ons?
Reply
#2
(May-26-2020, 07:00 AM)lowermoon Wrote: I would like to this without opening the file
How do you expect to read from and write to a file without opening the source and target files? By opening I don't mean starting excel application...
There are plenty of packages to work with excel files. It may depend on file format - xls or xlsx.
For example - relevant section in openpyxl documentation - Working with styles
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  New on python. Needs help with Google sheet jeromep 1 126 Yesterday, 06:47 PM
Last Post: deanhystad
  Plotting streamlines of the velocity field within an ice sheet verhaegenyoni 1 569 Mar-23-2024, 10:09 PM
Last Post: verhaegenyoni
  openpyxl issue - How to reset sheet.ins_row to the real last row ... ejwjohn 6 787 Nov-08-2023, 01:19 PM
Last Post: ejwjohn
  How to copy work sheet data one workbook to other? sayyedkamran 2 707 Nov-03-2023, 09:10 AM
Last Post: Larz60+
  Python and pandas: Aggregate lines form Excel sheet Glyxbringer 12 1,888 Oct-31-2023, 10:21 AM
Last Post: Pedroski55
  how to read txt file, and write into excel with multiply sheet jacklee26 14 10,044 Jan-21-2023, 06:57 AM
Last Post: jacklee26
  openpyxl rename sheet acting strange Pedroski55 1 1,935 Sep-26-2022, 08:56 AM
Last Post: buran
  Formating generated .data file to XML malcoverc 3 1,359 Apr-14-2022, 09:41 PM
Last Post: malcoverc
  Reading Excel file and use a wildcard in file name and sheet name randolphoralph 6 7,139 Jan-13-2022, 10:20 PM
Last Post: randolphoralph
  propper formating paracelsusx 2 1,903 Jul-16-2021, 09:17 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020