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.

Excel 365. Macro exportar celdas como imagen

publicado

Buenos días,

Lo primero que esteis bien junto con vuestras familias.

La siguiente macro funcionaba en excel 2016 y ha dejado de funcionar en excel 365. Lo curioso es que si lo ejecuto paso a paso (PF8) funciona pero si se jecuta la macro de corrido no exporta las imagenes y necesito exportar mas 500. Heprobado a poner un delay hasta de 10 sg ¿Podríais ayudadme por favor?

Muchísimas gracias y un cordial saludo.

----------------------------------------

Sub CopiaCeldasGrabaImagen(ruta)

    Dim RangoC As Range
    Dim Archivo As String
    Dim Imagen As Chart
    Dim Result As Boolean
    
    Archivo = ruta & ".gif"
    Set RangoC = Sheets("Vacaciones y puentes").Range("A1:H15")
    Sheets("Vacaciones y puentes").Select
    With RangoC
         .CopyPicture Appearance:=xlScreen, Format:=xlPicture
          Set Imagen = RangoC.Parent.ChartObjects.Add(30, 40, .Width, .Height).Chart
       End With
    Imagen.Paste
    Imagen.ChartArea.Border.LineStyle = 0
    '
    Imagen.Export Filename:=Archivo, filtername:="GIF"
    Imagen.Parent.Delete
    Set Imagen = Nothing
End Sub

 

Featured Replies

publicado

Tengo Office 365 y la macro me funciona sin problemas.

Sube tu archivo y le echo un vistazo.

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.