Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

New-OfficeExcelGoogleSheetsOptions

Module
PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Excel.GoogleSheets.GoogleSheetsSaveOptions

Creates native Excel-to-Google-Sheets planning and export settings without contacting Google.

Syntax

New-OfficeExcelGoogleSheetsOptions
[-Charts <Error|WarnAndSkip|Flatten|Rasterize>]
[-DomainUsersCanEdit]
[-DriveId <String>]
[-Editor <String[]>]
[-ExpectedDriveVersion <Int64>]
[-FolderId <String>]
[-FunctionMapping <Hashtable>]
[-Locale <String>]
[-PivotTables <Error|WarnAndSkip|Flatten|Rasterize>]
[-PrintLayout <Error|WarnAndSkip|Flatten|Rasterize>]
[-RecalculationInterval <OnChange|Minute|Hour>]
[-SpreadsheetId <String>]
[-TimeZone <String>]
[-Title <String>]
[-UnsupportedFormula <Error|PreserveWithWarning|UseCachedValue>]
[<CommonParameters>]
#
Parameter set: Default

Examples

Review a workbook with explicit formula and chart policies before uploading it.

$options = New-OfficeExcelGoogleSheetsOptions -Title 'Quarterly forecast' -UnsupportedFormula PreserveWithWarning
Export-OfficeExcelGoogleSpreadsheet -Document $workbook -Options $options -Mode Plan

Parameters

-Charts UnsupportedFeatureMode optional
Policy for charts without a reliable native equivalent. Omission retains the native default.
Possible values: Error, WarnAndSkip, Flatten, Rasterize
-DomainUsersCanEdit SwitchParameter optional
Whether domain users may edit protected content. Omission preserves the native policy.
-DriveId String optional
Shared-drive identifier. Omission retains the native default.
-Editor String[] optional
Editor email addresses for translated protected ranges.
-ExpectedDriveVersion Int64 optional
Drive version observed before replacement; the native exporter checks for changes. Omission retains the native default.
-FolderId String optional
Drive destination folder identifier. Omission retains the native default.
-FunctionMapping Hashtable optional
Function-name replacements; keys and values are native formula function names.
-Locale String optional
Target spreadsheet locale. Omission retains the native default.
-PivotTables UnsupportedFeatureMode optional
Policy for unsupported pivot tables. Omission retains the native default.
Possible values: Error, WarnAndSkip, Flatten, Rasterize
-PrintLayout UnsupportedFeatureMode optional
Policy for print layout without an equivalent. Omission retains the native default.
Possible values: Error, WarnAndSkip, Flatten, Rasterize
-RecalculationInterval GoogleSheetsRecalculationInterval optional
When the target recalculates formulas. Omission retains the native default.
Possible values: OnChange, Minute, Hour
-SpreadsheetId String optional
Existing spreadsheet identifier for replacement. Omission retains the native default.
-TimeZone String optional
Target spreadsheet time zone. Omission retains the native default.
-Title String optional
Title of a new spreadsheet. Omission retains the native default.
-UnsupportedFormula GoogleSheetsUnsupportedFormulaMode optional
Policy for formulas that cannot be translated. Omission retains the native default.
Possible values: Error, PreserveWithWarning, UseCachedValue

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.