
Sub IMMAGINI_TESTATA()
'--- GESTIONE IMMAGINI TESTATA---
For i = 1 To 1000
ActiveSheet.Pictures.Insert("path e immagine da inserire").Select
With ActiveSheet.Pictures(1)
.Left = ActiveWindow.VisibleRange.Columns(1).Left
.Top = ActiveWindow.VisibleRange.Rows(i).Top
End With
Next i
End Sub |
Sub IMMAGINI_TESTATA()
Dim c As Range
ActiveSheet.Pictures.Insert("percorsoimmagine.jpg").Select
Selection.Copy
With Columns(1)
Set c = .Find("IMMAGINE", LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Row
Do
Set c = .FindNext(c)
crow = c.Row
Cells(crow, 1).PasteSpecial
Loop While Not c Is Nothing And c.Row <> firstAddress
End If
End With
End Sub
|
