Hi,
I've been reading some posts now, but I can't find how I must handle my problem.
I recorded this as a macro, but I need it all formulas in this code to be copied down for every row(A column) where there is some text.
How should this be written?
This is the recorded macro
I've been reading some posts now, but I can't find how I must handle my problem.
I recorded this as a macro, but I need it all formulas in this code to be copied down for every row(A column) where there is some text.
How should this be written?
This is the recorded macro
Code:
Sub VulOnkosten()
Range("B7").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 10092543
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Range("C7").Select
ActiveCell.FormulaR1C1 = "=RC[-1]*Boodschappen!R11C7"
Range("D7").Select
ActiveCell.FormulaR1C1 = "=IF(RC[-3]<>"""",'Wie gaan mee'!R15C9,""-"")"
Range("E7").Select
ActiveCell.FormulaR1C1 = "=SUM(RC[-2]:RC[-1])"
Range("F7").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 10092543
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Range("G7").Select
ActiveCell.FormulaR1C1 = "=IF(RC[-1]=""ja"",RC[-2]-RC[-3],RC[-2])"
Range("G8").Select
End Sub