Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Macro

2 réponses
Avatar
j-marc
> Bonjour voici une macro fonctionne tres bien ,j.ai un nouveau projet et je voudrais savoir si c'est possible de l'ajuster pour quel fonctionne avec une image dans le commentaire ,présentement ca fonctionne tres bien avec du texte, peut etre une petite modification dans la 6e ligne? Merci
>
> Sub essai()
> Dim cell As Range
> For Each cell In Range("E1:E500")
> If cell.Value = "toto" Then
> cell.Value = Range("G10").Value
> cell.AddComment.Text Range("G10").NoteText
> End If
> Next
> End Sub

http://cjoint.com/?lvnAbzi5HB


>
Merci

2 réponses

Avatar
Daniel.C
Bonjour.
Essaie :

Sub essai()
Dim cell As Range
For Each cell In Range("E1", [E10000].End(xlUp))
If cell.Value = "toto" Then
Range("G10").Copy cell
End If
Next
End Sub

Daniel




Bonjour voici une macro fonctionne tres bien ,j.ai un nouveau projet et je
voudrais savoir si c'est possible de l'ajuster pour quel fonctionne avec une
image dans le commentaire ,présentement ca fonctionne tres bien avec du
texte, peut etre une petite modification dans la 6e ligne? Merci

Sub essai()
Dim cell As Range
For Each cell In Range("E1:E500")
If cell.Value = "toto" Then
cell.Value = Range("G10").Value
cell.AddComment.Text Range("G10").NoteText
End If
Next
End Sub



http://cjoint.com/?lvnAbzi5HB





Merci


Avatar
j-marc
Merci Daniel ca fonctionne tres bien

"Daniel.C" wrote:

Bonjour.
Essaie :

Sub essai()
Dim cell As Range
For Each cell In Range("E1", [E10000].End(xlUp))
If cell.Value = "toto" Then
Range("G10").Copy cell
End If
Next
End Sub

Daniel

>
>
>
>> Bonjour voici une macro fonctionne tres bien ,j.ai un nouveau projet et je
>> voudrais savoir si c'est possible de l'ajuster pour quel fonctionne avec une
>> image dans le commentaire ,présentement ca fonctionne tres bien avec du
>> texte, peut etre une petite modification dans la 6e ligne? Merci
>>
>> Sub essai()
>> Dim cell As Range
>> For Each cell In Range("E1:E500")
>> If cell.Value = "toto" Then
>> cell.Value = Range("G10").Value
>> cell.AddComment.Text Range("G10").NoteText
>> End If
>> Next
>> End Sub
>
> http://cjoint.com/?lvnAbzi5HB
>
>
>>
> Merci


.