Sub Drop_Down() Dim objIE As Object, ele As Object, opt As Object Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True
objIE.navigate "https://isgs-oas.isgs.illinois.edu/reports/rwservlet?oil_permit_activity"
Do While objIE.Busy = True Or objIE.readyState <> 4: DoEvents: Loop
Set ele = objIE.document.getElementsByTagName("INPUT")
For Each opt In ele
If opt.getAttribute("name") = "p_YEAR" Then
opt.Focus
opt.Value = "2018"
Exit For
End If
Next opt
Set ele = objIE.document.getElementsByTagName("select")
For Each opt In ele
If opt.getAttribute("name") = "p_MONTH" Then
opt.Focus
opt.Value = "January"
Exit For
End If
Next opt
objIE.document.forms(0).submit
Do While objIE.Busy: DoEvents: Loop
'Please help here 'Want to download the PDF file now
End Sub