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.

Importar datos de Web

publicado

Buenos días,

Soy bastante novato en macros por lo que agradecería me guiaseis para construir una macro que importe datos de Web, concretamente la Web es Moningstar, en la cual tengo una cartera con información de Fondos de Inversión.

El problema es que tengo que acceder a una opción dentro de la Web que es; Mi Cartera  y posteriormente, Acceder a una cartera existente, en la cual me pide Usuario y Contraseña.

Featured Replies

publicado
  • Autor

He encontrado esta Macro en la biblioteca, pero no me funciona.

 Sub conexion()

 Const Nick = "vecodis@gmail.com"
 Const Pass = "An19to51"

    For Each Q In ActiveSheet.QueryTables
        Q.Delete
    Next Q
    ActiveSheet.Cells.Clear
    '
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;https://www.morningstar.es/es/membership/LoginPopup.aspx", Destination:=Range( _
"$A$1"))
.PostText = "txtUsername=" & Nick & "&txtRealPassword=" & Pass

.Refresh BackgroundQuery:=False

 .Connection = "URL;https://www.morningstar.es/es/portfoliomanager/portfolio.aspx"
        .Name = "portfolio.aspx"
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = True
        .RefreshOnFileOpen = False
        .BackgroundQuery = True
        .RefreshStyle = xlInsertDeleteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = True
        .RefreshPeriod = 0
        .WebSelectionType = xlEntirePage
        .WebFormatting = xlWebFormattingNone
        .WebPreFormattedTextToColumns = True
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .WebDisableRedirections = False
        .Refresh BackgroundQuery:=False
    End With
    Range("A2").Select

End Sub

  • 4 weeks later...
publicado
  • Autor

Desconozco si por falta de aportación de datos, no me pueden ayudar  o es que no se puede desarrollar esta macro.

Gracias.

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.