To put this into context, I am extremely new to programming. I only have a basic understanding of Python, never touched VBA before this week, and rarely used excel. I know I it off way more than I can chew, but I am trying my best to learn. In my excel spreadsheet, I have a column E, and in each cell, I have a random string of either R, P, or S. I am trying to sift through each cell in this column, and for each cell, I am trying to identify anytime "R" occurs and print the next character in a separate cell. My goal is for each cell in the E column to have a correlating cell in the N column. Whenever the program runs, nothing happens in my spreadsheet.
Dim j As Integer
Dim i As Integer
Dim nextr As String
Sub Rvalue(i As Integer, nextr As String, j As Integer, cell As Variant)
For Each cell In Range("E2:E87")
For i = 1 To Len(Text)
If Mid((E2), i, 1) = "R" Then
j = i + 1
nextr = nextr & Mid((E2), j, 1)
End If
ActiveCell.Value = nextr
Next i
Next cell
End Sub