Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Macro Ingresar a pagina web

publicado

Hola, estoy armando una macro para ingresar a una pagina para cargar datos, porque en este momento no esta funcionando el programa que lo hace automaticamente. No puedo avanzar desde la carga de usuario y contraseña, sale el mensaje: "se a producido el error 91 en tiempo de ejecucion: Variable de objeto o bloque With no establecido". Segun el depurador ocurre con la linea "Loop Until ie.readystate = 4". Otra duda que tengo es con la linea "ie.Document.getElementById("submitbutton").Click" aunque todavia la macro no llego a ejecutar esa linea estimo que debe tener error porque la saque de un ejemplo de la web. Haciendo F12 en la pagina, el boton "Aceptar" le corresponde lo siguiente: "<input class="in-m btn-mod1" type="submit" value="Ingresar">", ¿como lo asigno a la macro?. Les paso el codigo:

 

Sub Macro1()

Dim ie As Object

Set ie = GetIE

ie.Navigate "https://sso.arba.gov.ar/Login/login?service=https%3A%2F%2Fcot.arba.gov.ar%3A443%2FTransporteBienes%2FCodigoTrasladoInicio.do%3Forganismo%3DAR%26orglogo%3Dnull", CLng(2048)

Set ie = Nothing

Do

DoEvents

Loop Until ie.readystate = 4 'verifico si cargo correctamente la página

  'Completo los elementos del formulario por ID

ie.Document.getElementById("prefijo").Value = "xx"

ie.Document.getElementById("dni").Value = "xxx"

ie.Document.getElementById("sufijo").Value = "x”

ie.Document.getElementById("password").Value = "xxxx"

'Ahora ubico el boton de submit o enviar, en este caso:

ie.Document.getElementById("submitbutton").Click

  'finalmente hacemos visible la ventana de Internet Explorer

ie.Visible = True

 

End Sub

 

Function GetIE() As Object

'return an object for the open Internet Explorer window, or create new one

  For Each GetIE In CreateObject("Shell.Application").Windows() 'Loop to find

    If (Not GetIE Is Nothing) And GetIE.Name = "Internet Explorer" Then Exit For 'Found!

  Next GetIE

  If GetIE Is Nothing Then Set GetIE = CreateObject("InternetExplorer.Application") 'Create

  GetIE.Visible = True 'Make IE window visible

End Function

Featured Replies

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.