Or
Public Function FindIssueOptions(LetterText As Range) As String
Dim LetterCell As Range, variableName As String, rMyRng As Range
For Each LetterCell In LetterText
If InStr(1, LetterCell.Value, ":") Then
variableName = Trim(Left(LetterCell.Value, InStr(1, LetterCell.Value, ":") - 1))
If variableName = "ISSUE OPTIONS" Then
FindIssueOptions = FindIssueOptions & Trim(LetterCell.Value) & ", "
Set rMyRng = LetterCell.Offset(1, 0)
Do While InStr(1, rMyRng.Value, ":") = 0
FindIssueOptions = FindIssueOptions & Trim(LetterCell.Offset(1, 0).Value) & ", "
Set rMyRng = rMyRng.Offset(1, 0)
Loop
End If
variableName = ""
Set rMyRng = Nothing
End If
Next LetterCell
If InStr(1, FindIssueOptions, ",") > 0 Then FindIssueOptions = Left(FindIssueOptions, Len(FindIssueOptions) - 2)
End Function
Bookmarks