Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Load Workbook | Excel Automation with Python
Excel Automation with Python
course content

Course Content

Excel Automation with Python

bookLoad Workbook

load_workbook() is a method provided by the openpyxl library in Python that allows you to load an existing Excel workbook from a file into memory. The load_workbook() method takes a filename as a parameter and returns a workbook object that represents the file's contents.

Task
test

Swipe to show code editor

  1. Load a workbook called "sample_data.xlsx";
  2. Print the sheetnames;
  3. Print the active sheet.

Mark tasks as Completed
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

load_workbook() is a method provided by the openpyxl library in Python that allows you to load an existing Excel workbook from a file into memory. The load_workbook() method takes a filename as a parameter and returns a workbook object that represents the file's contents.

Task
test

Swipe to show code editor

  1. Load a workbook called "sample_data.xlsx";
  2. Print the sheetnames;
  3. Print the active sheet.

Mark tasks as Completed
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 4
AVAILABLE TO ULTIMATE ONLY
We're sorry to hear that something went wrong. What happened?
some-alt