C
Chaps
Guest
Bonjour,
Voici mon code, mais j'ai un pb, ma sélection à copier comporte parfois plus d'une ligne, serait il alors possible d'adapter mon code pour ne prendre en compte que la première ligne visible des lignes visibles de ma sélection (Range("g18:g" & Fin).Select) afin de ne coller qu'une donnée.
Sub test()
Sheets("blabla").Select
Dim Fin As Integer
Fin = [a65536].End(xlUp).Row
Range("g18:g" & Fin).Select
Selection.SpecialCells(xlCellTypeVisible).Copy
Range("H1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Merci pour le retour d'info...
@+
chaps
Voici mon code, mais j'ai un pb, ma sélection à copier comporte parfois plus d'une ligne, serait il alors possible d'adapter mon code pour ne prendre en compte que la première ligne visible des lignes visibles de ma sélection (Range("g18:g" & Fin).Select) afin de ne coller qu'une donnée.
Sub test()
Sheets("blabla").Select
Dim Fin As Integer
Fin = [a65536].End(xlUp).Row
Range("g18:g" & Fin).Select
Selection.SpecialCells(xlCellTypeVisible).Copy
Range("H1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Merci pour le retour d'info...
@+
chaps