Office-Fragen.de
Selektiertes Bild in Variable - Druckversion

+- Office-Fragen.de (https://office-fragen.de)
+-- Forum: Microsoft Office (https://office-fragen.de/forum-1.html)
+--- Forum: Excel (https://office-fragen.de/forum-2.html)
+--- Thema: Selektiertes Bild in Variable (/thread-29230.html)



Selektiertes Bild in Variable - Caldolan - 28.02.2025

Hi Zusamme - ich steh gerade auf dem Schlauch. Ich möchte ein Selektiertes Bild in eine Variable speichern, komme aber gerade nicht drauf wie. Folgendes habe ich:

Code:
Sub SelektBildInVar()
  Dim aShape As Shape

  set aShape = Selection
end sub



RE: Selektiertes Bild in Variable - PetrolMaxxe - 01.03.2025

Hallo,

das funktioniert am besten via Selection.Name also so:
Code:
    Dim sh As Shape
    Set sh = Tabelle1.Shapes(Selection.Name)

Gruß Uwe