Error '438' en Excel
Publicado por Lucas (1 intervención) el 20/09/2011 04:51:27
Hola, hice una Macro que adjunta una foto en un lugar y en un tamaño determinado, el tema es que cuando el usuario se arrepiente y en vez de adjuntar una imagen, hace clic en cancelar sale error '438'.-
Deseo que eso no aparezca.- y pueda cancelar sin que le salga esa leyenda.-
Que esta mal o me falta ?
Gracias.
Deseo que eso no aparezca.- y pueda cancelar sin que le salga esa leyenda.-
Que esta mal o me falta ?
Gracias.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Sub InsertarArchImagen1()
Application.Dialogs(xlDialogInsertPicture).Show
Control = Range("CA12").Value
If Control <> "" Then
For i = 12 To 16
Nombre = Range("CA" & i).Value
On Error Resume Next
ActiveSheet.Shapes(Nombre).Select
ActiveSheet.Shapes(Nombre).Delete
Next
Else
End If
Selection.ShapeRange.PictureFormat.Brightness = 0.5
Selection.ShapeRange.PictureFormat.Contrast = 0.5
Selection.ShapeRange.PictureFormat.ColorType = msoPictureAutomatic
Selection.ShapeRange.PictureFormat.CropLeft = 10
Selection.ShapeRange.PictureFormat.CropRight = 10
Selection.ShapeRange.PictureFormat.CropTop = 20
Selection.ShapeRange.PictureFormat.CropBottom = 20
tope = Range("B48:J64").Top
izq = Range("B48:J64").Left
alto = Range("B48:J64").Height
ancho = Range("B48:J64").Width
Selection.ShapeRange.Top = tope
Selection.ShapeRange.Left = izq
Selection.ShapeRange.Height = alto
Selection.ShapeRange.Width = ancho
For i = 1 To columna
anchototal = anchototal + Cells(i, 1).ColumnWidth
Next
End Sub
Valora esta pregunta


0