Toskico
11-04-2013, 02:34 AM
Hi all,
I'm trying to write code which replicates the alt+shift+up/down keyboard shortcut for textboxes/shapes in a way that works with tables for Powerpoint 2007. So far, I have code which identifies the cell the selected text is in, as well as the index number (within the cell) of the first and last paragraphs selected. I've tried two ways of swapping the text so far, with little success:
using the insert before/after feature for paragraphs (doesn't retain the formatting of the paragraphs being moved)
Creating dummy textboxes and using .Copy/.PasteSpecial (ppPasteDefault) to move the paragraphs being switched to the text boxes and then back into their new spots in the cell. This actually works reasonably well, but for some reason doesn't handle bullets at level three or below (the bullet disappears and the indentation gets messed up). I'm also keen to find a method which doesn't clear the user's clipboard in the process, as this does.
I'm trying to write code which replicates the alt+shift+up/down keyboard shortcut for textboxes/shapes in a way that works with tables for Powerpoint 2007. So far, I have code which identifies the cell the selected text is in, as well as the index number (within the cell) of the first and last paragraphs selected. I've tried two ways of swapping the text so far, with little success:
using the insert before/after feature for paragraphs (doesn't retain the formatting of the paragraphs being moved)
Creating dummy textboxes and using .Copy/.PasteSpecial (ppPasteDefault) to move the paragraphs being switched to the text boxes and then back into their new spots in the cell. This actually works reasonably well, but for some reason doesn't handle bullets at level three or below (the bullet disappears and the indentation gets messed up). I'm also keen to find a method which doesn't clear the user's clipboard in the process, as this does.