Results 1 to 6 of 6

Thread: VBA Copy-paste problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Newbie
    Joined
    Nov 2014
    Posts
    5
    Location

    VBA Copy-paste problem

    I have the same problem

    Selection.Find.ClearFormatting
                With Selection.Find
                    .Text = "[#$]"
                    .Replacement.Text = ""
                    .Forward = True
                    .Wrap = wdFindContinue
                    .Format = False
                    .MatchCase = False
                    .MatchWholeWord = False
                    .MatchWildcards = False
                    .MatchSoundsLike = False
                    .MatchAllWordForms = False
                End With
                Selection.Find.Execute
                Selection.HomeKey Unit:=wdLine
                Selection.TypeParagraph
                Selection.MoveUp Unit:=wdLine, Count:=1
    '            Selection.MoveDown Unit:=wdLine, Count:=1
                Selection.Paste
    The error appens at the line Selection.Paste, after Debug if i continue the ends regularly

    the pasted object is a row in a table

    Thanks for your help
    Marzio
    Last edited by macropod; 01-24-2019 at 04:22 PM. Reason: Split from http://www.vbaexpress.com/forum/showthread.php?63156-VBA-Word-problem-with-Paste

Posting Permissions

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