Give his a go:
Sub TheShetland()
Dim IE As Object
Set IE = CreateObject("InternetExplorer.application")
IE.Visible = True
IE.Navigate ("https://www.shipmentlink.com/servlet/TDB1_CargoTracking.do")
'wait for page to load
Do While (IE.busy Or IE.readyState <> 4)
Application.Wait (Now + TimeSerial(0, 0, 2))
Loop
IE.document.forms("frmCargo").Item(16).Value = "012345678900" 'change this hard coded value to a variable, or cell reference, or whatever the source is for the search data.
IE.document.forms("frmCargo").Item(17).Click
End Sub
Bookmarks