Convert RTF (Rich Text Format) code into plain text in Excel
问题 I exporting a database query as Excel and I am getting rows with RTF formatting. How can I convert these fields into plain text? I've found answers that are pretty old, so I was wondering if anyone knows a way. 回答1: Another alternative can be using Microsoft Rich Textbox Control (but can't test it on x64 Office) Sub rtfToText() With CreateObject("RICHTEXT.RichtextCtrl") ' or add reference to Microsoft Rich Textbox Control for early binding and With New RichTextLib.RichTextBox .SelStart = 0 '