View Single Post
 
Old 02-10-2019, 06:03 PM
BeginnerLearner BeginnerLearner is offline Windows 10 Office 2013
Novice
 
Join Date: Feb 2019
Posts: 22
BeginnerLearner is on a distinguished road
Default

Hi, macropod

Thanks for your help!

May I know how to get specific word from text frame?

These are the codes that I have tried
Code:
Sub Frame()

Dim oTxt As TextRange2
Dim oTxt2 As TextRange2

MsgBox ActiveDocument.Frames(1).Range.Text
Set oTxt = ActiveDocument.Frames(1)
Set oTxt2 = oTxt.Find("Technology",True)

If Not oTxt2 Is Nothing Then
    MsgBox "Something"
End If

End Sub
Reply With Quote