Good morning,
I have created the code below, but it is slowing the file loading process up as I have entered a range to search instead of the Column, due to data being in some rows above Row 11
Is there anyway to get the code to work its way down the column C & AM to the last full row instead of going down to row 50,000
Sorry I havent used VB in a while can I combine the first section in column C as 1 piece of coding and then the VB for Column AM in 1 piece as well instead of a line for each description in the speech marks?
thanks in advance
I have created the code below, but it is slowing the file loading process up as I have entered a range to search instead of the Column, due to data being in some rows above Row 11
Is there anyway to get the code to work its way down the column C & AM to the last full row instead of going down to row 50,000
Sorry I havent used VB in a while can I combine the first section in column C as 1 piece of coding and then the VB for Column AM in 1 piece as well instead of a line for each description in the speech marks?
Code:
For Each Cel In Range("C11:C50000")
If Cel.Value <> "" Then Cel.Offset(0, 42).Value = "10"
Next
For Each Cel In Range("C11:C50000")
If Cel.Value <> "" Then Cel.Offset(0, 43).Value = "1"
Next
For Each Cel1 In Range("AM11:AM50000")
If Cel1.Value = "Passive" Then Cel1.Offset(0, 8).Value = "1"
Next
'Criteria change
For Each Cel1 In Range("AM11:AM50000")
If Cel1.Value = "Promoter" Then Cel1.Offset(0, 9).Value = "1"
Next
For Each Cel1 In Range("AM11:AM50000")
If Cel1.Value = "Detractor" Then Cel1.Offset(0, 10).Value = "1"
Next
For Each Cel1 In Range("AM11:AM50000")
If Cel1.Value = "Strong Detractor" Then Cel1.Offset(0, 11).Value = "1"
Next