What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

HTML/VBA

mp3909

New member
Joined
Jun 4, 2019
Messages
1
Reaction score
0
HTML Coins
0
I am new to HTML and I am trying to automate web scraping using VBA.
However, I am stuck.
I need to be able to set the current date to "20190528" but not sure how to access the HTML code i.e. I tried doing something like this in vba but I am not sure HTMLDoc.getElementById("ReportViewerControl_ctl04_ctl03_ddValue") is correct and if it is, do not know what to do after that to set the date to 20190528

Option Explicit
Sub BrowseToSite()

Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")

Dim HTMLDoc As MSHTML.HTMLDocument
Dim HTMLInput As MSHTML.IHTMLElement

IE.Visible = True
IE.navigate url

Do While IE.ReadyState <> 4
Loop

Set HTMLDoc = IE.document
Set HTMLInput = HTMLDoc.getElementById("ReportViewerControl_ctl04_ctl03_ddValue")

End Sub
 

Attachments

  • Capture.JPG
    Capture.JPG
    138.3 KB · Views: 1

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back