Hi Badunit,
I got it all working with an Applescript Shortcut. Thanks to your tip. :)
But Copy & Paste sadly does not work anymore in a MacOS Shortcut (bug?). So I use an {array} filled with values from a column on another worksheet to overwrite the current items in the pop-up menu of the first cell of the column and add extra rows for the remaining ones. I then put the original value in the first cell back again (which was gone) followed by your "merge trick" which worked perfectly with the range of the rest of the column.
Some findings using Applescript:
- Selecting non-adjacent cells/ranges cannot be done.
- Copy (tell application "System Events" to keystroke "c" using command down) and Paste (same with "v") does not work in Shortcuts.
- You cannot clear out a pop-up menu of a cell range without removing all the cell contents (values) as well.
- There must be one item in a pop-up menu, so you cannot delete the last item.
- Selecting a pop-menu item in the cell formatting panel is possible, but doesn't get the "focus".
- You cannot replace the contents of a pop-menu with an {array} in one go. You have to go through the items (rows) one by one.
- Addressing buttons, scroll areas, checkmarks and other items in the "formatting" panel is a nightmare. Is it "button 1" or "button 2" ? And why "scroll area 1" followed by "scroll area -1" ? It's not documented and becomes a lot of guesswork. In particular in foreign versions of Numbers when something like "radio button Cell" does not work at all.
It all looks like Applescript was a rush job done by programmers who think like programmers but not like users. Sadly a common mistake. Perhaps Apple will give this some more attention in the future?
Best,
Theo