Maria Gödiker
2005-09-06 15:56:53 UTC
Hallo NG
ich möchte über ein Makro mit Schaltfläche in der Symbolleiste erreichen,
dass ich alle Bilder eine bestimmte Höhe zuweisen kann.
Z. B. möchte ich das Bild markieren und dann erreichen dass die Breite genau
4 cm ist. Ich habe über Makro aufnehmen ein Makro erstellt, stockt es - der
Eintrag "Left" wird markiert.
Es erscheint die Fehlermeldung:
"Methode oder Datenobjekt nicht gefunden"
Mein Makro hat folgende Aussehen:
Selection.InlineShapes(1).Fill.Visible = msoFalse
Selection.InlineShapes(1).Fill.Solid
Selection.InlineShapes(1).Fill.Transparency = 0#
Selection.InlineShapes(1).Line.Weight = 0.75
Selection.InlineShapes(1).Line.Transparency = 0#
Selection.InlineShapes(1).Line.Visible = msoFalse
Selection.InlineShapes(1).LockAspectRatio = msoTrue
Selection.InlineShapes(1).Height = 127.55
Selection.InlineShapes(1).Width = 129.55
Selection.InlineShapes(1).PictureFormat.Brightness = 0.5
Selection.InlineShapes(1).PictureFormat.Contrast = 0.5
Selection.InlineShapes(1).PictureFormat.ColorType = msoPictureAutomatic
Selection.InlineShapes(1).PictureFormat.CropLeft = 0#
Selection.InlineShapes(1).PictureFormat.CropRight = 0#
Selection.InlineShapes(1).PictureFormat.CropTop = -0.15
Selection.InlineShapes(1).PictureFormat.CropBottom = -0.15
Selection.InlineShapes(1).Left = 0#
Selection.InlineShapes(1).Top = 0#
Leider habe ich zuwenig Ahnung mi VBA, wer kann mir hier helfen
Maria
ich möchte über ein Makro mit Schaltfläche in der Symbolleiste erreichen,
dass ich alle Bilder eine bestimmte Höhe zuweisen kann.
Z. B. möchte ich das Bild markieren und dann erreichen dass die Breite genau
4 cm ist. Ich habe über Makro aufnehmen ein Makro erstellt, stockt es - der
Eintrag "Left" wird markiert.
Es erscheint die Fehlermeldung:
"Methode oder Datenobjekt nicht gefunden"
Mein Makro hat folgende Aussehen:
Selection.InlineShapes(1).Fill.Visible = msoFalse
Selection.InlineShapes(1).Fill.Solid
Selection.InlineShapes(1).Fill.Transparency = 0#
Selection.InlineShapes(1).Line.Weight = 0.75
Selection.InlineShapes(1).Line.Transparency = 0#
Selection.InlineShapes(1).Line.Visible = msoFalse
Selection.InlineShapes(1).LockAspectRatio = msoTrue
Selection.InlineShapes(1).Height = 127.55
Selection.InlineShapes(1).Width = 129.55
Selection.InlineShapes(1).PictureFormat.Brightness = 0.5
Selection.InlineShapes(1).PictureFormat.Contrast = 0.5
Selection.InlineShapes(1).PictureFormat.ColorType = msoPictureAutomatic
Selection.InlineShapes(1).PictureFormat.CropLeft = 0#
Selection.InlineShapes(1).PictureFormat.CropRight = 0#
Selection.InlineShapes(1).PictureFormat.CropTop = -0.15
Selection.InlineShapes(1).PictureFormat.CropBottom = -0.15
Selection.InlineShapes(1).Left = 0#
Selection.InlineShapes(1).Top = 0#
Leider habe ich zuwenig Ahnung mi VBA, wer kann mir hier helfen
Maria