View Single Post
 
Old 02-11-2019, 02:17 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,975
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Perhaps you need to explain fully what it is you want to do. To find a particular word by searching through all the text frames in a document the code would look like
Code:
Sub GetAWord()
  Dim aFrame As Frame, aRng As Range
  For Each aFrame In ActiveDocument.Frames
    Set aRng = aFrame.Range
    With aRng.Find
      .ClearFormatting
      .Replacement.ClearFormatting
      .Text = "Technology"
      If .Execute Then
        aRng.Select
        MsgBox "Found one of 'em"
      End If
    End With
  Next aFrame
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote