Johnny Thunder
Well-known Member
- Joined
- Apr 9, 2010
- Messages
- 693
- Office Version
- 2016
- Platform
- MacOS
Hey guys, just need a little help rewriting this formula below,
Code:
Sub Duplicate_Val()
Dim lrow As Long, ws1 As Worksheet
Set ws1 = Sheets("Datasource")
lrow = ws1.Cells(Rows.Count, "A").End(xlUp).Row 'Adjustments Lastrow
Application.Goto ws1.Range("L10")
With ws1
.Range("$L$11:L" & lrow & "").Formula = "=COUNTIF($A:$A,A11)"
.Range("L10").formula = "=COUNTIF($L$11:$L$ & lrow & ",""<""&1)" 'This line keeps getting an error on the "," part?
End With
End Sub