Version

Clone Method (FormattedString)

Creates a new FormattedString that is a copy of this one.
Syntax
'Declaration
 
Public Function Clone() As FormattedString
public FormattedString Clone()

Return Value

A new FormattedString that is a copy of this one.
Remarks

This should be used if the same formatted string needs to be used in multiple cells. The FormattedString class can only exist as the WorksheetCell.Value of one cell at a time. If the FormattedString is already the value of a cell, and needs to be set as the value of another cell, clone the FormattedString and set the returned clone as value of the cell.

The cloned FormattedString only takes its original configuration for this instance. If this instance is cloned and than changed, the clone will not be changed as well; it will remain as it was when it was cloned.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also