![]() |
|
|
|
#1
|
||||
|
||||
|
You can find a given frame's text via code like: MsgBox ActiveDocument.Frames(1).Range.Text
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#2
|
|||
|
|||
|
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
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Find and highlight text in MS Word document containing word
|
Jovan Yong | Word VBA | 5 | 04-09-2018 02:59 AM |
how to get a startpage like at word 2010 (text frame at margins)
|
hauswalter | Word | 11 | 10-20-2015 02:38 AM |
Trouble fomatting a frame - top of letter cut off in frame - line spacing
|
gandalf458 | Word | 4 | 12-10-2014 03:04 AM |
Cannot get rid of a border in a frame or text box
|
blockie | Word | 2 | 08-21-2014 07:51 PM |
Converting plain text to text box/frame
|
peacespotting | Word | 1 | 08-08-2013 10:39 PM |