I am struggling to shorten the amount of code I am using. I currently have 10 different subs that look for a specific letter in column L and replace it with the letter "P" (see code below). I want to search for letters "A-B, D-E, G-L, N-Z" in column "L" and replace it with the letter "P". Is this possible or do I just cut and paste numerous times for different sheets?
Code:
Sub Change_ReturnTypeN() 'Changes return type N to P i = 2 Sheets("Listed").Select Do While Range("A" & i) <> "" If Range("L" & i) = "N" Then Range("L" & i) = "P" Else i = i + 1 End If Loop End Sub
Comment