PDA

View Full Version : vba word, textframe cut data is not pasting on same place of textarea



sindhu2352
03-08-2017, 10:43 PM
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

gmaxey
03-09-2017, 10:57 AM
It does if the selection or IP is in the main text storyRange.