Attempts to replace the specified text according to the specified options, returning the number of replacements if successful or zero if not successful.
            
            
            
            
            
            
            
            'Declaration
 
Function Replace( _
   ByVal  As System.String, _
   ByVal  As System.String, _
   ByVal  As LookAt, _
   ByVal  As SearchOrder, _
   ByVal  As System.Boolean _
) As System.Integer
             
        
            
            'Usage
 
Dim instance As IRange
Dim what As System.String
Dim replacement As System.String
Dim lookAt As LookAt
Dim searchOrder As SearchOrder
Dim matchCase As System.Boolean
Dim value As System.Integer
 
value = instance.Replace(what, replacement, lookAt, searchOrder, matchCase)
             
        
            
            System.int Replace( 
   System.string ,
   System.string ,
   LookAt ,
   SearchOrder ,
   System.bool 
)
             
        
            
            function Replace( 
    : System.String;
    : System.String;
    : LookAt;
    : SearchOrder;
    : System.Boolean
): System.Integer; 
             
        
            
            function Replace( 
    : System.String,
    : System.String,
    : LookAt,
    : SearchOrder,
    : System.boolean
) : System.int;
             
        
            
            System.int Replace( 
   System.string* ,
   System.string* ,
   LookAt ,
   SearchOrder ,
   System.bool 
) 
             
        
            
            System.int Replace( 
   System.String^ ,
   System.String^ ,
   LookAt ,
   SearchOrder ,
   System.bool 
) 
             
        
             
        
            Parameters
- what
 
- Specifies the text to to find.
 - replacement
 
- Specifies the replacement text.
 - lookAt
 
- Specifies partial or complete match.
 - searchOrder
 
- Specifies whether to search by rows or by columns.
 - matchCase
 
- Specifies whether text searches should match case.
 
            
            Return Value
Returns the number of replacements if successful or zero if not successful.
 
            
            
            
            
            Target Platforms: Windows 7, 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