D
Dragoncity
Hi,
I'm very new to macros and VBA, and need help.
I need to replace all the graphics in a Word document using Paste Special so
they are converted from HTML linked images to embedded images.
I have recorded the macro to do this, but I want the whole action to repeat
(find graphic, cut, paste, move to next graphic)
I have tried to look at the samples available, but I'm WAAAAY above my head
on this. Any help would be just peachy
My current macro is:
Sub ChangeImage()
'
' ChangeImage Macro
' Macro recorded 27/10/06 by Nicola Harlow
'
Selection.Find.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
Selection.Cut
Selection.PasteSpecial Link:=False, DataType:=wdPasteOLEObject,
Placement _
:=wdInLine, DisplayAsIcon:=False
End Sub
I've tried Repeat, but that just re-does the paste. Not useful.
Thanks,
Nicola
I'm very new to macros and VBA, and need help.
I need to replace all the graphics in a Word document using Paste Special so
they are converted from HTML linked images to embedded images.
I have recorded the macro to do this, but I want the whole action to repeat
(find graphic, cut, paste, move to next graphic)
I have tried to look at the samples available, but I'm WAAAAY above my head
on this. Any help would be just peachy
My current macro is:
Sub ChangeImage()
'
' ChangeImage Macro
' Macro recorded 27/10/06 by Nicola Harlow
'
Selection.Find.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
Selection.Cut
Selection.PasteSpecial Link:=False, DataType:=wdPasteOLEObject,
Placement _
:=wdInLine, DisplayAsIcon:=False
End Sub
I've tried Repeat, but that just re-does the paste. Not useful.
Thanks,
Nicola