Skip to main content

Read cell format

Read one cell's fill colour, font (name, size, colour, bold, italic, underline), alignment, wrapping and number format.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/excel_get_cell_format · 6 inputs, 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Remote pathStringNoWorkbook path in the drive (e.g. Finance/budget.xlsx), or id:{item-id}.
SheetStringNoWorksheet name.
CellStringNoCell address.
DriveStringNome/driveWhose files: me/drive (your OneDrive), a person (ann@acme.com), a SharePoint site (contoso.sharepoint.com:/sites/Finance), a library of a site by name (contoso.sharepoint.com:/sites/Finance:/Invoices), or sites/{site-id}/drive or drives/{drive-id}. With an app sign-in, name a person or site.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
formatDictionaryfill_color, font_name, font_size, font_color, bold, italic, underline, horizontal_alignment, vertical_alignment, wrap_text, number_format.