![]() |
|
|
|
#1
|
|||
|
|||
|
Finally, this code is required
Thank you macropod and thank for all Sub FindIt11() Application.ScreenUpdating = True For i = 0 To 10 Selection.HomeKey wdStory With ActiveDocument.Range.Find .Text = "TARIQ" .Forward = True .Wrap = wdFindContinue .Execute Replace:=wdReplaceNone If .Found = True Then .Parent.Select ActiveDocument.MailMerge.Fields.Add Range:=Selection.Range, Name:="FirstName" End If End With For Each iShp2 In ActiveDocument.Shapes If iShp2.TextFrame.HasText = True Then With iShp2.TextFrame.TextRange.Find .Text = "TARIQ" .Execute Replace:=wdReplaceNone If .Found = True Then .Parent.Select ActiveDocument.MailMerge.Fields.Add Range:=Selection.Range,Name:="FirstName" ' End If End With End If Next iShp2 Next i Application.ScreenUpdating = True End Sub |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Typing Mail Merge Fields instead of clicking them?
|
Mjpunj | Mail Merge | 1 | 06-20-2014 05:28 PM |
| Mail Merge Directory - Combining fields | officegirl | Mail Merge | 1 | 03-21-2013 11:02 PM |
Mail Merge only produces 15 fields fm 22
|
Galceran | Mail Merge | 2 | 02-10-2013 05:47 PM |
Conditional merge fields in mail merge
|
Aude | Mail Merge | 1 | 01-06-2012 07:38 PM |
Mail Merge truncating 'some' of the text fields......Not sure what to do
|
sssb2000 | Mail Merge | 5 | 09-26-2010 09:40 AM |