|
-
Apr 25th, 2006, 10:47 AM
#1
Thread Starter
New Member
[Resolved] Copy/Paste a Word Textbox
Anybody have an idea on how to programatically in VBA copy and paste a textbox.
I have given the TextBox a name (also tried with Bookmarks).
What I basically want to do is to copy the text box from one document and paste it into another document.
Bookmarks don't work. If you bookmark a textbox, you basically bookmark the text range in the textbox.
If have found a way to identify the textbox I am looking for in ActiveDocument.Shapes, and now I only need some way to also copy the textbox to the clipboard ... I am sure the paste will work pretty smooth.
Thanks in advance.
:-)an
Last edited by pingel; May 3rd, 2006 at 01:42 PM.
Reason: Resolved
-
Apr 25th, 2006, 02:07 PM
#2
Thread Starter
New Member
Re: Copy/Paste a Word Textbox
After some testing on my own, I finally found the solution:
VB Code:
....
[INDENT]With TB
[INDENT].Anchor.ShapeRange.Select
Document.Windows.Selection.Copy[/INDENT]End With[/INDENT]....
:-)an
Last edited by pingel; May 3rd, 2006 at 01:41 PM.
Reason: Resolved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|