Dynamic clipboard paste within a macro
Posted: Wed Dec 06, 2006 6:58 pm
Hi,
For a huge number of text chunks within the current file, I wrote a macro that saves each of them within a new file. For each new file created, the name must match the clipboard contents a the moment of the 'SaveAs' operation (F12).
It works fine for the first created file, but the problem is that all the subsequent files take the same name as the first one, overwriting each other. Obviously, at the moment of the macro recording, the string contained in the clipboard has been hardcoded instead of the 'CTRL+V' sequence.
Is there an escape sequence or something else that I could use instead of 'CTRL+V' in order to get a dymanic paste at the macro runtime?
For a huge number of text chunks within the current file, I wrote a macro that saves each of them within a new file. For each new file created, the name must match the clipboard contents a the moment of the 'SaveAs' operation (F12).
It works fine for the first created file, but the problem is that all the subsequent files take the same name as the first one, overwriting each other. Obviously, at the moment of the macro recording, the string contained in the clipboard has been hardcoded instead of the 'CTRL+V' sequence.
Is there an escape sequence or something else that I could use instead of 'CTRL+V' in order to get a dymanic paste at the macro runtime?