View Single Post
  #5   Report Post  
Posted to microsoft.public.word.newusers
Brian Holfield
 
Posts: n/a
Default Office clipboard macro

TextA is any selection of text which I choose.
TextB is any other selection of text which I choose.
There is no repeatable pattern of relationship between the two
selections.
That is why I was clipping them onto the clipboard.
Putting them in was no problem. Getting them back out was the problem.
I imagine the selections could be trapped as varA and varB in a program
instead of using the clipboard.

Doug Robbins - Word MVP wrote:
But what are TextA and TextB? How are they arranged in the original
document?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Brian Holfield" wrote in message
ups.com...
In DocA, clip TextA and clip TextB.
In DocB
insert a table with one row and two columns
paste TextB into the left cell
paste TextA into the right cell


Doug Robbins - Word MVP wrote:
Tell us exactly what it is that you want to do. There may be other,
better
ways to do it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Brian Holfield" wrote in message
oups.com...
From docA I first clip TextA to the Offfice Clipboard, then I clip
TextB to it.
In docB I record Mymacro with these actions: First I open the
clipboard, then paste TextB, then delete TextB from the clipboard. Now
I paste TextA from the open clipboard, then delete it from the
clipboard. Now I close the clipboard.

When I next have a new TextA and Text B on the clipboard I run Mymacro.
It pastes TextB two times and leaves TextA and TextB on the clipboard.

Any way to get the macro to do what I need, that is paste TextA and
TextB and delete them from the clipboard?