Hallo, 

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] 
> Sent: Saturday, September 26, 2020 1:09 PM
> To: [email protected]
> Subject: variables Bild in calk
> 
> Hallo,
> 
> ich habe eine Tabelle mit
> 
> MNr, Namen,usw
> 
> 123,ichselbst,usw
> 
> ich möchte daraus direkt eine Art Ausweis erstellen mit Name usw und 
> einem Bild
> 
> Die Bilddatei liegt auf g:.....\bilder\dasBild123.jpg
> 
> Ich kann zwar eine Bilddatei einfügen, aber kann sie nicht 
> anpassen. Das 
> Bild ist an M7 angekoppelt.
> 
> Ginge auch per Makro, aber ich weiß nicht, wie ich die Grafik 
> ansprechen 
> kann.

z.B.:

Sub Main
        x = ThisComponent.Sheets(0).DrawPage
        for i = 0 to x.Count -1
                xx =  x.getByIndex(i)
                With xx.Anchor.CellAddress
                        If .Column = 12 AND .Row = 6 Then 'M7
                                'Msgbox xx.GraphicURL
                                xx.GraphicURL = 
ConvertToURL("G:\bilder\dasBild123.jpg")
                        End If
                End With
        next i
End Sub


Gruß
Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Antwort per Email an