Wpis z mikrobloga

mam problem z ogarnięciem makra łączącego excela z internet explorerem

mam sobie taki kod:

Dim objIE As InternetExplorer 'special object variable representing the IE browser
Dim aEle As HTMLLinkElement 'special object variable for an (link) element
Dim y As Integer 'integer variable we'll use as a counter
Dim result As String 'string variable that will hold our result link

Set objIE = New InternetExplorer

objIE.Visible = True

objIE.navigate "[https://google.pl](https://google.pl)"
Do While objIE.Busy = True Or objIE.readyState <> 4: DoEvents: Loop

objIE.document.all.Item("username").Value = _
Sheets("Arkusz1").Range("A2").Value

objIE.document.all.Item("userpassword").Value = _
Sheets("Arkusz1").Range("A3").Value

objIE.document.all.Item("submitbutton").Click

tak jak tutaj udało mi się zidentyfikować przycisk przy pomocy firebuga:

|
objIE.document.all.Item("submitbutton").Click

tak już tutaj nie działa ani jako id ani jako name

span class="mainMenuNode1">
Order Management

jakieś pomysły? to jest rozwijane menu

#excel #vba #office #makra
  • Odpowiedz