![]() |
#7
|
||||
|
||||
![]()
In that case try:
Code:
Sub Demo() Dim Rng As Range With Selection With .Find .ClearFormatting .Text = "[#Des2]" .Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False .Execute End With If .Find.Found = True Then If .Information(wdWithInTable) = True Then .MoveEnd Unit:=wdRow, Count:=1 Set Rng = .Range .Collapse wdCollapseEnd .FormattedText = Rng.FormattedText End If End If End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word Error Message Run time Error 4605 | baes10 | Word VBA | 1 | 08-30-2018 02:37 PM |
![]() |
Peterson | Word VBA | 2 | 04-19-2018 08:45 AM |
![]() |
mrlemmer11 | Word VBA | 1 | 07-06-2015 09:17 PM |
PasteAppendTable not available (Run-Time Error 4605) | q_scribe | Word VBA | 1 | 08-12-2013 09:56 AM |
![]() |
nkg | Word | 1 | 02-19-2012 07:21 PM |