copie sans format

tinet

XLDnaute Impliqué
Bonjour le forum

Je cherche à copier uniquement la valeur sur ce code

DerL = Range("L65536").End(xlUp).Row
Range("L10:L" & DerL).Copy Feuil1.Range("A5") :rolleyes:
 

Lone-wolf

XLDnaute Barbatruc
Bonjour tinet :)

VB:
Option Explicit

Sub Copier()
Dim DerL As Long, plage As Range

    With ActiveSheet
        DerL = .Range("L" & Rows.Count).End(xlUp).Row
        Set plage = .Range("L10:L" & DerL)
        plage.Copy
    End With

    With Feuil1
        .Range("A5").PasteSpecial Paste:=xlPasteValues
        Application.CutCopyMode = 0
    End With
End Sub
 

DoubleZero

XLDnaute Barbatruc
Bonjour, tinet, L:)ne-wolf, le Forum,

Ou bien :
VB:
Option Explicit
Sub CommandButton1_Click()
    Dim DerL As Long
    DerL = Range("L65536").End(xlUp).Row
    Range("L10:L" & DerL).Copy
    Feuil1.Range("A5").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
    Application.CutCopyMode = False
End Sub
A bientôt :)
 

Membres actuellement en ligne

Aucun membre en ligne actuellement.

Statistiques des forums

Discussions
312 165
Messages
2 085 880
Membres
103 009
dernier inscrit
dede972