If MsgBox("Ændre billed-navne til 1,2,3... ok ? ", vbYesNo) = vbYes Then For t = 1 To ActiveSheet.Shapes.Count ActiveSheet.Shapes(t).Name = t ' Resetter billednavne til 1,2,3,4.... Next End If
For t = 1 To ActiveSheet.Shapes.Count x = x & ActiveSheet.Shapes(t).Name & Chr(13) Next MsgBox ("") & x
ActiveSheet.Shapes(1).Copy ' kopier billede 1 ActiveSheet.Paste Destination:=ActiveSheet.Cells(8, 4) ' indsæt kopi ved selle D8
ActiveSheet.Shapes(ActiveSheet.Shapes.Count).Select ' aktiver sidste billede For t = 1 To 8 ' zoom op Selection.ShapeRange.ScaleWidth 1.1, msoFalse, msoScaleFromTopLeft ' værdi >1 zoomer op Selection.ShapeRange.ScaleHeight 1.1, msoFalse, msoScaleFromTopLeft Application.Wait (Now + TimeValue("0:00:1")) Next 'MsgBox ("") For t = 1 To 8 ' zoom ned Selection.ShapeRange.ScaleWidth 0.9, msoFalse, msoScaleFromTopLeft ' værdi <1 zoomer ned Selection.ShapeRange.ScaleHeight 0.9, msoFalse, msoScaleFromTopLeft Application.Wait (Now + TimeValue("0:00:1")) Next For t = 1 To 12 ' flyt til venstre og ned Selection.ShapeRange.IncrementLeft -t * 2 Selection.ShapeRange.IncrementTop t * 2 Application.Wait (Now + TimeValue("0:00:1")) Next
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.