Text vs FormattedText


Difference between Text and FormattedText

objRange.Text = the objects unformatted text

sText = objRange.Text 

objRange.FormattedText - returns a range object that represents the text and the formatting

objRange = obAnotherRange.FormattedText 

The FormattedText property has a special use and that is to transfer text and formatting from one range to another


Dim objRange As Range 
objRange = ActiveDocument.Words(2)



© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext