Excel: Add image

Insert a picture, or a picture of one page of any file, into a sheet at a cell.

Help Centre › Building Processes

Insert a picture, or a picture of one page of any file, into a sheet at a cell.

Runs on: macOS and Windows only.

Add it to a process

In the process designer, open the Add step tab. Find Add image under Excel › Cells & Ranges, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
File pathNoEnter the file path, or use a variable such as {folders::desktop::path}\file.xlsx. Leave blank to use the workbook an earlier step opened.
FileYesA picture, PDF, Word, Excel, PowerPoint, text, HTML or saved email file, e.g. {file.path}.
SheetYesName of the sheet in the Excel file. Supports wildcards: * matches any characters.
CellNoWhere the picture's top-left corner goes, e.g. B2. For "Fit into the cell or range" you can give a range such as B2:F20. Defaults to the current cell.
PageNo1 is the first page, 2 the second, -1 the last. Leave blank for page 1.
SizeNoIts own size: the top-left corner sits in the cell and the rest lies over the cells beside it; no cell is resized. Choices: Column width, row made taller, Its own size, over the cells beside it, Fit into the cell or range. Default: column.
PlacementNoInside the cell, the picture moves and sorts with its row, and replaces what is in the cell. That needs Microsoft 365 Excel on Windows. Choices: Over the cell, Inside the cell (Microsoft 365, Windows). Default: over.
Sheet of the fileNoFor an Excel file only: the sheet whose printed pages are counted. Leave blank for the sheet that was active when it was saved.
Image nameNoA picture with this name already on the sheet is replaced, so a process run again does not stack pictures.
Width (points)No72 points is 1 inch. Overrides the size.
Height (points)No72 points is 1 inch. Overrides the size.
Replace what is in the cellNoInside the cell only. Off, a cell that already holds a value is left alone and the step fails. Default: off.
Make a picture file smallerNoShrinks a picture file and saves it compactly. A page of a document is always made smaller. Default: off.

See all Excel steps.

Errors

ErrorDescription
File not openThe Excel file must be open.
Sheet not foundThe specified sheet does not exist.
Image not foundThe image file does not exist at the specified path.

Tips

  • Supported image formats include PNG, JPG, BMP, and GIF.
  • If width and height are omitted, the image is inserted at its original size.
  • Give the image a name so you can remove it later with the Remove image function.

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.