|
-
Jan 28th, 2009, 12:16 PM
#1
Thread Starter
Hyperactive Member
-
Jan 28th, 2009, 12:49 PM
#2
Fanatic Member
Re: How to find in returns(vbcrlf) in VBA
Code:
With Selection.Find
.Text = "^13^13"
.Replacement.Text = "^p"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = True
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
MsgBox Selection.Find.Execute
Click Here to read more about this topic.
-
Jan 29th, 2009, 07:54 AM
#3
Re: How to find in returns(vbcrlf) in VBA
Code:
With ActiveDocument.Range.Find
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
Do
.Text = "^p^p"
.Replacement.Text = "^p"
Loop Until .Execute = False
End With
-
Jan 29th, 2009, 11:31 AM
#4
Thread Starter
Hyperactive Member
-
Jan 29th, 2009, 11:31 AM
#5
Thread Starter
Hyperactive Member
Re: How to find in returns(vbcrlf) in VBA
 Originally Posted by anhn
Code:
With ActiveDocument.Range.Find
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
Do
.Text = "^p^p"
.Replacement.Text = "^p"
Loop Until .Execute = False
End With
thank you
DONT RUN EXECUTABLE FILES FROM UNKNOWN SOURCES.

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|