“Comment continuer la formule en dessous de la ligne dans le code VBA” Réponses codées

Comment continuer la formule en dessous de la ligne dans le code VBA

Sub CopyDown()
Dim Lastrow As String, FirstRow As String, strtCell As Range
'
' CopyDown Macro
' Copies the current cell to any empty cells below it.   
'
' Keyboard Shortcut: Ctrl+Shift+D
'
    Set strtCell = ActiveCell
    FirstRow = strtCell.Address
' Lastrow is address of the *list* of empty cells
    Lastrow = Range(Selection, Selection.End(xlDown).Offset(-1, 0)).Address
'   MsgBox Lastrow
    Range(Lastrow).Formula = strtCell.Formula

    Range(Lastrow).End(xlDown).Select
 End Sub
ThevarRaj

Comment continuer la formule en dessous de la ligne dans le code VBA

Range("$M$3").Formula = Range("G3") & (",") & Range("L3")

Dim Lastrow As Long

Application.ScreenUpdating = False

Lastrow = Range("L" & Rows.Count).End(xlUp).Row
Range("M4").FormulaR1C1 = Range("G4") & (",") & Range("L4")
Range("M4").AutoFill Destination:=Range("M4:M" & Lastrow)
ActiveSheet.AutoFilterMode = False
Application.ScreenUpdating = True
ThevarRaj

Comment continuer la formule en dessous de la ligne dans le code VBA

Range("tablename[columnname]").Formula = "=G3&"",""&L3"
ThevarRaj

Réponses similaires à “Comment continuer la formule en dessous de la ligne dans le code VBA”

Questions similaires à “Comment continuer la formule en dessous de la ligne dans le code VBA”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code