Save calculation clipboard+1 to clipboard

I’m working on a macro where I copy a number, and then need to add one to that number and reinsert it. This would repeat multiple times, starting at 1: 1+1=2, 2+1=3, 3+1=4, and so forth. I can’t seem to find a way to do this though, any ideas?

Assuming that by "reinsert it" you mean paste back to your source document, here is an example macro. You made need to adjust to your needs.

The macro does this:

  1. Copies current selection
  2. Adds one to the selection (will get error if selection is NOT a number)
  3. Pastes the new total back to your source document, replacing the selection

##Macro Library Add Number to Selection
####Download:
Add Number to Selection.kmmacros (3.0 KB)

1 Like

Works like a charm, thanks!