Results 1 to 2 of 2

Thread: [Resolved] Copy/Paste a Word Textbox

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Location
    Rochester, New York
    Posts
    8

    Resolved [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

  2. #2

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Location
    Rochester, New York
    Posts
    8

    Resolved Re: Copy/Paste a Word Textbox

    After some testing on my own, I finally found the solution:

    VB Code:
    1. ....
    2. [INDENT]With TB
    3. [INDENT].Anchor.ShapeRange.Select
    4. 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
  •  



Click Here to Expand Forum to Full Width