Hi guys,
I am running this code;
My issue is when it pastes the row, in column F of that pasted row I have a formula also pasted however, When the line pastes it does paste in the I have to click each pasted column F cell and just press enter for excel to act on the formula input.
I am sure it is very simple but I cannot wrap my head around it, I have tried adding .Select in and also Range("F6").Select
I am running this code;
VBA Code:
Sub
Dim lngMax As Long
Dim lngcounter As Long
Dim lngCalc As Long
lngCalc = Application.Calculation
Application.Calculation = xlCalculationManual
With ActiveSheet
lngMax = WorksheetFunction.Max(.Range("B" & .Rows.Count).End(xlUp).Row, .Range("C" & .Rows.Count).End(xlUp).Row)
For lngcounter = 5 To lngMax
If UCase(.Cells(lngcounter, "B").Value) = "HERE" Then
.Rows(4).Copy .Rows(lngcounter)
End If
Next lngcounter
End With
Application.Calculation = lngCalc
End Sub
My issue is when it pastes the row, in column F of that pasted row I have a formula also pasted however, When the line pastes it does paste in the I have to click each pasted column F cell and just press enter for excel to act on the formula input.
I am sure it is very simple but I cannot wrap my head around it, I have tried adding .Select in and also Range("F6").Select
Last edited by a moderator: