Your code works here, assuming that the text file in question is compatible with the search pattern e.g.
Name "John Smith"
Age "27"
Date of Birth "12/12/1993"
would show you 12/12/1993 in the message box.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|