First question...the line where you have " in the code...one which starts with "PosStart"...where you see a ", you need to put " & chr(34) & " (note the quote at the start and end...this closes the string so you can do variable functions, then reopens it for new text

so change:

"<a class="P" href="/Profile.aspx?uid="

into

"<a class=" & chr(34) & "P" & chr(34) & " href=" & chr(34) & "/Profile.aspx?uid="

Edit: I assume bush's way will work too...if not, mine definitely does :-)