![]() |
#7
|
||||
|
||||
![]()
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 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Jovan Yong | Word VBA | 5 | 04-09-2018 02:59 AM |
![]() |
hauswalter | Word | 11 | 10-20-2015 02:38 AM |
![]() |
gandalf458 | Word | 4 | 12-10-2014 03:04 AM |
![]() |
blockie | Word | 2 | 08-21-2014 07:51 PM |
![]() |
peacespotting | Word | 1 | 08-08-2013 10:39 PM |