Skip to main content
Inspiring
December 18, 2018
Question

Add icon to multiple table cells all at once

  • December 18, 2018
  • 4 replies
  • 832 views

Hi,

Is there a method to add a icon (image of a checkmark) to multiple table cells all at once?

I tried it out with: Convert Cell to Graphic Cell > Place and then copy paste but that won't work.

This topic has been closed for replies.

4 replies

Colin Flashman
Community Expert
Community Expert
December 23, 2018

My $0.02:

There are a couple of scripts available that will change specific text to a graphic. InDesignSecrets has written up one: https://indesignsecrets.com/swapping-text-and-images-with-a-free-script.php

And there is another one I'm constantly referring people to as it is quite effective:

Place inline images

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!
Inspiring
December 22, 2018

Hi Barb and Winterm,

Thanks for your replies. I already tried Barbs method and it works very good. After the holidays i will also try Winterm's method.

Happy Holidays 

Barb Binder
Community Expert
Community Expert
December 22, 2018

Happy holidays!

~Barb

~Barb at Rocky Mountain Training
Barb Binder
Community Expert
Community Expert
December 18, 2018

Hi Mark:

We haven't seen your layout, but will this work for you?

  1. Add the image to the table, set sizing and frame fitting options, along with paragraph and cell options. (I'd save it as an object style.)
  2. Cut the image to the clipboard.
  3. Select the column (or row or multiple consecutive cells), then set up a GREP find/change:
    Find what: $
    Change to: ~C
    Search: Selection


  4. Change all doesn't work, but the Find Next and Change buttons do:

~Barb

~Barb at Rocky Mountain Training
winterm
Legend
December 18, 2018

Hi, Barb, but this will add your clipboard content to every cell, regardless it is empty or not?

I would do this in two steps:

1. Add some special glyph to empty cells only, using this Obi-wan's two-liner from another thread (you need to place cursor somewhere in the table and run the script):

var a = app.selection[0].parent.parent, b = a.cells,  c = b.length; 

while (c--) if (b.contents.length == 0) b.contents = "@";

2. Then replace that inserted glyph with your clipboard content, using F/C, and Change All will work here.

(not sure if it's possible at all in js to read and place clipboard content directly )

Barb Binder
Community Expert
Community Expert
December 18, 2018

Hi Winterm:

My final screen shot shows Story but if you set it to Selection (2nd screen shot) it works as described.

~Barb

~Barb at Rocky Mountain Training
Steve Werner
Community Expert
Community Expert
December 18, 2018

Perhaps it's available with scripting but it's not built into InDesign. You might ask in the InDesign Scripting forum:

InDesign Scripting