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 extraer mails de pagina web

publicado

Buenas noches,

Estoy intentando utilizar esta macro pero no me responde y desconozco porqué.

Además el navegador que uso suele ser chrome. ¿Alguien puede ayudarme a saber porque no se ejecuta bien?

Gracias

adjunto código

---

Sub scrapeHyperlinksWebsite()

Dim ie As InternetExplorer

Dim html As HTMLDocument

Dim Link As Object

Dim ElementCol As Object

Dim erow As Long

Application.ScreenUpdating = False

Set ie = New InternetExplorer

ie.Visible = False

‘ie.navigate “http://www.rondebruin.nl/contact.htm”

‘ie.navigate “http://info.mathxlforschool.com/contact-us”

ie.navigate “http://www.iberia.es”

Do While ie.readyState <> READYSTATE_COMPLETE

Application.StatusBar = “Loading website…”

DoEvents

Loop

Set html = ie.document

‘Range(“A2″) = html.DocumentElement.innerHTML

Set ElementCol = html.getElementsByTagName(“a”)

‘Set ElementCol = html.getElementsByTagName(“mailto:”)

For Each Link In ElementCol

If InStr(Link, “mailto:”) Then

erow = Worksheets(“Sheet1″).Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row

Cells(erow, 1).Value = Link

Cells(erow, 1) = Right(Link, Len(Link) – InStr(Link, “:”))Cells(erow, 1).Columns.AutoFit

End If

Next

Set ie = Nothing

Application.StatusBar = “”

Application.ScreenUpdating = True

End Sub

Featured Replies

No hay posts para mostrar

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.