![]() |
#1
|
|||
|
|||
![]()
Hi,
I am looking for some help in writing the vba macro to find all the figures in the word document and insert a line just above the each graphics in the work document. Sub Macro1() ' ' Macro1 Macro ' ' Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "^g" '.Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAll End Sub Like in this code it is able to find all the graphics but we dont want to replace the graphics, we want to keep them and add the line. Thanks in advance. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
simba24d | Word | 3 | 06-10-2016 02:28 PM |
![]() |
tvincent8118 | Word VBA | 1 | 06-23-2015 04:45 AM |
VBA find keyword and move to location then add symbol | Jmanville | Word VBA | 3 | 10-22-2014 01:45 AM |
![]() |
Don83 | Word | 4 | 03-12-2014 02:19 AM |
![]() |
donaldadams1951 | Word VBA | 5 | 12-03-2013 10:08 AM |