Hi,
Sorry me again for my defense I'm a beginner...
In the below, 'value' and 'formula' are correctly added in the required sheet.However the part in red is ignored. Help would be really appreciated.
Sub Insert_ECB()
With Sheets("ECB")
.Range("AC1").Value = "ABC"
.Range("AC2").Formula = "=Z2/2"
Dim lastRow As Long
lastRow = Range("Z" & Rows.Count).End(xlUp).Row
Range("AC2").AutoFill Destination:=Range("AC2:AC" & lastRow)
End With
End Sub
Sorry me again for my defense I'm a beginner...
In the below, 'value' and 'formula' are correctly added in the required sheet.However the part in red is ignored. Help would be really appreciated.
Sub Insert_ECB()
With Sheets("ECB")
.Range("AC1").Value = "ABC"
.Range("AC2").Formula = "=Z2/2"
Dim lastRow As Long
lastRow = Range("Z" & Rows.Count).End(xlUp).Row
Range("AC2").AutoFill Destination:=Range("AC2:AC" & lastRow)
End With
End Sub