I was trying to scrape data from the following webpage using VBA:
https://www.kap.org.tr/tr/bildirim-sorgu
Before I search fot the items, I first need to enter some criteria to the lower side multi select buttons. That's where my problem begins. I am trying to click on "all notifications" tab which is located under "notification type". However some I couldn't achieve to do that. 1
I have tried following code:
Sub VBAWebScraping()
Dim IEObject As InternetExplorer
Set IEObject = New InternetExplorer
IEObject.Visible = True
IEObject.navigate Url:="https://www.kap.org.tr/tr/bildirim-sorgu"
Do While IEObject.Busy = True Or IEObject.readyState <> READYSTATE_COMPLETE
Application.Wait Now + TimeValue("00:00:01")
Loop
Dim KAPMainPage As HTMLDocument
Set KAPMainPage = IEObject.document
Dim Filters As IHTMLElementCollection
Set Filters = KAPMainPage.getElementsByClassName("filter-multi padding right")
Dim NotiType As IHTMLElement
Set NotiType = Filters.Item(2)
NotiType.Click
Dim cbxItems2 As IHTMLElementCollection
Set cbxItems2 = KAPMainPage.getElementsByClassName("multiSelectItem vertical")
Dim NButton As Object
Set NButton = cbxItems2.Item(925)
NButton.Click
IEObject.Visible = False
End Sub
I am a beginner in VBA and all this stuff and I'm stucked. I appreciate if somebody could help me.
Thanks in advance
all notifications? It looks like you want to hit theFormer KAP Member Companiesand then select a company a long way day that dropdown list.