Yuri Khristich ← Adobe InDesign My feedback 1 result found Calculated cells 6 votes Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close Vote We’ll send you updates on this idea 1 comment · Adobe InDesign: Feature Requests » Scripting · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close An error occurred while saving the comment Yuri Khristich commented · Jun 19, 2021 · Edit… · Delete… Select two cells and run this script. The script multiplies the two numbers and put the result in clipboard. var sel = app.selection; app.copy(); var nums = sel[0].contents; var frame = app.activeDocument.textFrames.add({geometricBounds : [0,0,300,40]}); frame.contents = (Number(nums[0]) * Number(nums[1])).toString(); frame.parentStory.texts[0].select(); app.cut(); frame.remove(); app.select(sel); Save Submitting...
Select two cells and run this script.
The script multiplies the two numbers and put the result in clipboard.
var sel = app.selection;
app.copy();
var nums = sel[0].contents;
var frame = app.activeDocument.textFrames.add({geometricBounds : [0,0,300,40]});
frame.contents = (Number(nums[0]) * Number(nums[1])).toString();
frame.parentStory.texts[0].select();
app.cut();
frame.remove();
app.select(sel);