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.

Previsualizar pdfs desde excel

publicado

Buenos días, me gustaría que me echarais un cable con una plantilla.

Necesito que en las celdas A1:B22, aparezca una previsualización de documentos pdf de una carpeta en concreto, dando la opción de que en las celdas A1:B1 se pueda cambiar entre los diferentes pdf de la carpeta, y en la A2:B2 se pueda escribir el nombre que quiero que el archivo previsualizado tenga, y así renombrarlo pulsando un botón de una macro.

A partir de la celda C1 querría seguir viendo los datos que tengo actualmente, sin que la previsualización me impida verlos. ¿Es posible esto? Muchas gracias!

post-103590-145877005414_thumb.jpg

Featured Replies

publicado
  • Autor

Hola, he conseguido el previsualizador, pero me gustaría saber como ponerlo arriba a la izquierda del todo (en la celda a1) y que no se moviera si me muevo con la barra de desplazamiento. Tengo el código siguiente:

Dim RUTA As String

Private Sub UserForm_Initialize()

On Error GoTo Errores

Dim fName As String

archivo = Application.GetOpenFilename(Filefilter:=" Archivos PDF (*.pdf), *.pdf,", _

Title:="Seleccionar cualquier archivo .pdf o cancelar para ver el directorio actual")

If archivo = False Then

RUTA = ThisWorkbook.Path & "\" ' RUTA DONDE BUSCA LOS ARCHIVOS PARA EL LISTADO

Else

x = InStrRev(archivo, "\")

RUTA = Left(archivo, x)

End If

Me.Caption = "Archivos: " & RUTA & "*.pdf"

LV.ListItems.Clear

fName = Dir(RUTA)

Do While Len(fName) > 0

If fName Like "*" & ".pdf" Then Set SUBELEMENTO = LV.ListItems.Add(, , fName)

fName = Dir

Loop

Exit Sub

Errores:

MsgBox "initialize: " & Err.Number & Chr(13), 16, Title:=""

End Sub

Private Sub LV_DblClick()

On Error GoTo Errores

NOMBRE = LV.SelectedItem.Text

archivo = RUTA & NOMBRE

UserForm1.WEBB.Navigate archivo

Exit Sub

Errores:

MsgBox "initialize: " & Err.Number & Chr(13), 16, Title:=""

End Sub

Private Sub WEBB_StatusTextChange(ByVal Text As String)

End Sub

Muchas 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.