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.

Una macro en Excel para insertar imagenes centradas a la celda

publicado

Hola , por favor quisiera que me den una macro que inserte imagenes, pero que las imagenes salgan centradas, tanto de izquierda a derecha como de arriba a abajo, y que el tamaaño de la imagen no cambie

Featured Replies

publicado

Prueba con esto:

Sub ejemplo()
ChDir "C:\Archivo\fotos\" ' Ruta en donde estan las fotos
archivo = "foto1.jpg" Nombre de la imagen
Range("B5").ColumnWidth = 27.43 ' Donde se pegara la foto y le ponemos los parametros
Range("B5").RowHeight = 114
tope = Range("B5").Top + 10
izq = Range("B5").Left + 10
ActiveSheet.Pictures.Insert(archivo).Select
Selection.ShapeRange.Top = tope
Selection.ShapeRange.Left = izq
Selection.ShapeRange.Width = 127
End Sub
[/CODE]

Saludos

publicado
  • Autor

he probado con este ejemplo y la imagen me aparece mucho mas grande de lo que en realidad es y no me aparece centrada :(

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.