# OneDrive Excel Sheets

This data source connector loads Excel sheets from 
**[Microsoft OneDrive](https://www.microsoft.com/en-us/microsoft-365/onedrive/online-cloud-storage)**
and stores them as tables in a bucket in your current project.

**[Microsoft OneDrive](https://www.microsoft.com/en-us/microsoft-365/onedrive/online-cloud-storage)**
cloud storage integrates
**[Office365](https://www.office.com/)**
and **[SharePoint](https://www.microsoft.com/en-us/microsoft-365/sharepoint/collaboration)** sites,
so with this connector, you have access to all your Excel sheets in your personal account or in your business account.


## Configuration
[Create a new configuration](https://help.keboola.com/components/configurations/#create-a-configuration) of the **OneDrive Excel Sheets** connector.  
Then click **Authorize Account** to [authorize the configuration](https://help.keboola.com/components/authorization/). 

Click **Add Table** to configure extraction.

![Screenshot - Empty configuration](https://help.keboola.com/components/extractors/storage/onedrive-excel-sheets/onedrive-01.png)

Fill in the **name** and, optionally, the **description**. Then click **Add Table**.  
These values will help you easily identify the extraction later.

![Screenshot - Add table popup](https://help.keboola.com/components/extractors/storage/onedrive-excel-sheets/onedrive-02.png)

**Use the file picker** to list accessible Excel files -- workbooks.

![Screenshot - Use file picker](https://help.keboola.com/components/extractors/storage/onedrive-excel-sheets/onedrive-03.png)

Go through the list and select a file. Click **Open** to confirm the file you want to import.

![Screenshot - Select file](https://help.keboola.com/components/extractors/storage/onedrive-excel-sheets/onedrive-04.png)

The file is specified by a **Drive ID** and by a **File ID**. They are automatically filled in.   
The **file name** is for your information only and changing it doesn't affect functionality.

![Screenshot - Workbook config](https://help.keboola.com/components/extractors/storage/onedrive-excel-sheets/onedrive-05.png)

Click **Load Worksheets** to select a worksheet from the workbook you configured in the previous step.

![Screenshot - Empty worksheet config](https://help.keboola.com/components/extractors/storage/onedrive-excel-sheets/onedrive-06.png)

In the list that appeared, **click on the name** of the worksheet you want to import.

![Screenshot - Select worksheet](https://help.keboola.com/components/extractors/storage/onedrive-excel-sheets/onedrive-07.png)

The worksheet is specified by a **Worksheet ID**. It is automatically filled in.   
The **worksheet name** is for your information only and changing it doesn't affect functionality.

![Screenshot - Save](https://help.keboola.com/components/extractors/storage/onedrive-excel-sheets/onedrive-08.png)

The output **table name** is automatically filled in with the worksheet name.  
You can manually change it to suit your needs. If the table doesn't exist, it will be created. 

![Screenshot - Select worksheet](https://help.keboola.com/components/extractors/storage/onedrive-excel-sheets/onedrive-09.png)

Click **Save** when you're done.

![Screenshot - Select worksheet](https://help.keboola.com/components/extractors/storage/onedrive-excel-sheets/onedrive-10.png)

## Modify Configuration
When a table is added to the connector, it is displayed in the list of tables. 

Configured tables are stored as [configuration rows](https://help.keboola.com/components/#configuration-rows).

![Screenshot - Select worksheet](https://help.keboola.com/components/extractors/storage/onedrive-excel-sheets/onedrive-11.png)

Each table has a different setting, but all tables share the same authorization to your OneDrive account.

The list shows the row name and the destination table in [Storage](https://help.keboola.com/storage/).

You can **click on the row to modify** the configuration.
