Reflection Desktop VBA Guide
Attachmate.Reflection.Objects Library / Attachmate.Reflection.Objects.Web.Msie Library / WebElement Object / PutText Method
The text to put in the field.
Example
In This Topic
    PutText Method
    In This Topic
    Puts text in the text field if the Web element is an input text type.
    Syntax
    expression.PutText( _
       ByVal text As String _
    ) 
    where expression is a variable that represents a WebElement Object

    Parameters

    text
    The text to put in the field.
    Example
    This sample puts text in a Web form.
    Sub PutDataInWebForm()
        Dim FormBoxFirst, FormBoxLast As Attachmate_Reflection_Objects.WebElement
        
        Set FormBoxFirst = ThisWebControl.Document.GetElementById("firstName")
        Set FormBoxLast = ThisWebControl.Document.GetElementById("lastName")
        
        FormBoxFirst.PutText ("Joe")
        FormBoxLast.PutText ("Buyer")
           
        
    End Sub
    See Also