Consulting

Results 1 to 2 of 2

Thread: vba word, textframe cut data is not pasting on same place of textarea

  1. #1

    vba word, textframe cut data is not pasting on same place of textarea

    im trying to cut data from text frame and paste it outside textframe, following code works but it do not paste outside on parent place/index of textframe

    Sub fromtxtbox() 
         
         
        For Each s In ActiveDocument.Shapes 
          
             
             
            s.TextFrame.TextRange.Cut 
    
            Selection.PasteAndFormat (wdFormatOriginalFormatting) 
             
             
        Next 
    End Sub

  2. #2
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,335
    Location
    It does if the selection or IP is in the main text storyRange.
    Greg

    Visit my website: http://gregmaxey.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •