View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
AA2e72E AA2e72E is offline
external usenet poster
 
Posts: 400
Default Reading Wordpad - Rich Text Format

All I want is the actual text:

One way to achieve this is to put a RichTextBox control on a userform.

Read your WordPad document as follows:

userform1.RichTextBox1.FileName= "C:\Document.rtf"


Get the text only from the control as follows:

RTFText = userform1.RichTextBox1.text