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.

Insertar imagen

publicado

Buenas a todos.

Desde antes gracias por su ayuda.

Tengo un codigo para insertar una imagen cuando cambia la celda "E5" la imagen la inserta segun el valor de la celda "G3". Pero quisiera que me insertara la imagen que se llama "Imagen no encontrada" cuando la imagen no exista dentro del directorio.

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Target.Address = "$E$5" Then Exit Sub
On Error Resume Next
'Control de errores
Me.Shapes("Foto").Delete

ActiveSheet.Shapes.AddShape(msoShapeRectangle, 432.3077165354, 1, _
118.8461417323, 105).Select
Selection.ShapeRange.Name = "Foto"
Selection.ShapeRange.Fill.Visible = msoFalse
Selection.ShapeRange.Line.Visible = msoFalse


On Error Resume Next
With Selection.ShapeRange.Fill
.Visible = msoTrue
.UserPicture "C:\Users\JUAN ANTONIO\Desktop\Insertar Imagen\Fotos\" & [G3] & ".jpg"
.TextureTile = msoFalse
End With
Range("E5").Select
End Sub

[/CODE]

Unicamente subo el codigo porque mi archivo pesa mucho y para evitar subirlo en tres o cuatro partes.

Ojala y me ayuden sabiendo que no subi el archivo.

Gracias y quedo es espera de sua yuda.

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.