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.

Actualizar datos externos en libro compartido

publicado

Buenos días,

Trabajo con un libro compartido con macros al que he tenido que conectar una lista de datos externa (lista Sharepoint). La conexión la tengo configurada para que se actualicen los datos cada vez que se abra el fichero pero no funciona. Si el libro deja de estar compartido la conexión se actualiza sin problemas pero al estar compartido no funciona.

Cómo alternativa se me había ocurrido esto:

 

Sub Actualiza_Datos_Promos()

Application.DisplayAlerts = False
If ActiveWorkbook.MultiUserEditing Then
    ActiveWorkbook.ExclusiveAccess
End If

'Actualizo los datos
ActiveWorkbook.Connections("Conexión").Refresh
Application.Wait (Now + TimeValue("00:00:05"))            ‘Aquí incluso he dejado unos segundos por si la conexión tarda en actualizarse, pero la lista son pocos registros y no debería.

Application.DisplayAlerts = True

'Lanzo la rutina principal
Call Carga_Fichero

Application.DisplayAlerts = False

If Not ActiveWorkbook.MultiUserEditing Then
    ActiveWorkbook.SaveAs Filename:=ActiveWorkbook.FullName, _
        accessMode:=xlShared
End If

Application.DisplayAlerts = True

MsgBox "Proceso Finalizado"

End Sub

El caso es que sigue sin funcionar... Tengo que volver a dejar el libro sin compartir y actualizar la conexión a mano para que se actualicen los datos...

¿Alguna idea de lo que pasa? ¿Puede solucionarse?


Gracias.

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.