S
Shinya
I am searching a word document for specific word.
when using selection.find.execute do i have to have
all document selected? (Ctrl+A) this works for
normal document, but when i have email type document
(display To: CC: Subject input box in word document to
send email from word )
vb says "this command is not available." and hight light
.Selection.Find.Execute line.
any idea why vb keeps poping up this message at
.Selection.Find.Execute line when using Email type
word document?
Shinya
dim wordDoc as word.appliaction
wordDoc.open(specific file)
With wordDoc
.Selection.ClearFormatting
With .Selection.Find
.Text = str_word
.Forward = True
'.Highlight = True
.Wrap = wdFindContinue
.format = False
.MatchCase = False
.MatchWholeWord = True
.MatchKashida = False
.MatchDiacritics = False
.MatchAlefHamza = False
.MatchControl = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
FindKeyword = .Selection.Find.Execute
when using selection.find.execute do i have to have
all document selected? (Ctrl+A) this works for
normal document, but when i have email type document
(display To: CC: Subject input box in word document to
send email from word )
vb says "this command is not available." and hight light
.Selection.Find.Execute line.
any idea why vb keeps poping up this message at
.Selection.Find.Execute line when using Email type
word document?
Shinya
dim wordDoc as word.appliaction
wordDoc.open(specific file)
With wordDoc
.Selection.ClearFormatting
With .Selection.Find
.Text = str_word
.Forward = True
'.Highlight = True
.Wrap = wdFindContinue
.format = False
.MatchCase = False
.MatchWholeWord = True
.MatchKashida = False
.MatchDiacritics = False
.MatchAlefHamza = False
.MatchControl = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
FindKeyword = .Selection.Find.Execute