Results 1 to 2 of 2

Thread: how to put value in a TEXTBOX web page

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,926

    how to put value in a TEXTBOX web page

    https://www.gratis.it/utility/abicab/#gsc.tab=0


    <input name="CodAbi" type="text" size="5" maxlength="5" value="08441">

    my test code:

    Code:
    Sub Test()
        
        Dim IE As Object
        Set IE = CreateObject("InternetExplorer.application")
        IE.Visible = True
        IE.navigate ("https://www.gratis.it/utility/abicab/#gsc.tab=0")
        Do
            If IE.readyState = 4 Then
                IE.Visible = False
                Exit Do
            Else
                DoEvents
            End If
        Loop
        IE.document.forms(0).all("codabi").Value = "08441"    
        
    End Sub
    Attached Images Attached Images  
    Last edited by luca90; May 21st, 2026 at 07:51 PM.

  2. #2
    New Member
    Join Date
    Dec 2020
    Posts
    11

    Re: how to put value in a TEXTBOX web page

    The input name is case sensitive - so below line should read

    Code:
    IE.document.forms(0).all("CodAbi").Value = "08441"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width