The following snippet saves the selected Range as RTF using VBA (Word 2007)
Sub Export_Selection_As_RTF()
Selection.Range.ExportFragment "C:\Users\comp\AppData\Local\Temp\Sample.rtf", wdFormatRTF
End Sub
See also:
Welcome to VBA Tips & Tricks. All VBA related information will be posted on this blog. Of late, VBA has been disregarded by many software professionals for .Net, c# and other technologies. This blog will also post articles related to them too Happy reading
No comments:
Post a Comment