# Export-OfficeExcelGoogleSpreadsheet

Plans, compiles, or exports an Excel workbook to Google Sheets.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Outputs**

`OfficeIMO.Excel.GoogleSheets.GoogleSheetsTranslationPlan` `OfficeIMO.Excel.GoogleSheets.GoogleSheetsBatch` `OfficeIMO.Excel.GoogleSheets.GoogleSpreadsheetReference`

**Source**

[ExportOfficeExcelGoogleSpreadsheetCommand.cs:13](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/ExportOfficeExcelGoogleSpreadsheetCommand.cs#L13) 

Plans, compiles, or exports an Excel workbook to Google Sheets.

## Syntax

```
Export-OfficeExcelGoogleSpreadsheet
[-AsBatch]
[-FailOnLoss]
[-Options <GoogleSheetsSaveOptions>]
[-Path] <String>
[-PlanOnly]
[-Session <GoogleWorkspaceSession>]
[<CommonParameters>]
```

[#](#method-export-officeexcelgooglespreadsheet-switchparameter-switchparameter-googlesheetssaveoptions-string-switchparameter-googleworkspacesession)

Parameter set: `Path`

```
Export-OfficeExcelGoogleSpreadsheet
[-AsBatch]
-Document <ExcelDocument>
[-FailOnLoss]
[-Options <GoogleSheetsSaveOptions>]
[-PlanOnly]
[-Session <GoogleWorkspaceSession>]
[<CommonParameters>]
```

[#](#method-export-officeexcelgooglespreadsheet-switchparameter-exceldocument-switchparameter-googlesheetssaveoptions-switchparameter-googleworkspacesession)

Parameter set: `Document`

## Examples

### Example 1

```powershell
Export-OfficeExcelGoogleSpreadsheet -Path 'C:\Path'
```

### Example 2

```powershell
Export-OfficeExcelGoogleSpreadsheet -Document 'Value'
```

## Parameters

**-AsBatch SwitchParameter optional**

Return the provider-neutral request batch without contacting Google.

**-FailOnLoss SwitchParameter optional**

Throw when translation reports a warning or error.

**-Options GoogleSheetsSaveOptions optional**

Google Sheets translation and destination settings.

**-Path String requiredposition: 0sets: Path**

Path to an Excel workbook.

**-PlanOnly SwitchParameter optional**

Return the translation plan without compiling requests or contacting Google.

**-Session GoogleWorkspaceSession optional**

Configured Google Workspace session used for a live export.

**-Document ExcelDocument requiredpipeline: True (ByValue)sets: Document**

Excel workbook to export.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:A1F42A6827805BEB4F17D638BE84EA82C104D88092909826758CB6ABED20F756 -->
