The message box was merely an indication that the macro had recovered the correct piece of text. In a real world situation it would not be required. You would use the value shown displayed in the text box i.e. oRng.Text, to add the required content to the CSV fille.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|