I use this function to combine 2 cells into one. the first is text, the second is a series of links to comments
Sub setRefWithRemark()
Dim aCellRef, aCellRem, aCelTarget As Range
Dim aRow As Range
For Each aRow In Range("rgtensileRefWithRemark").Rows
Set aCellRef = aRow.Cells(1, 1)
Set aCellRem = aRow.Cells(1, 12)
Set aCellTarget = aRow.Cells(1, 17)
If aCellRef.Text <> "" Then
With aCellTarget
.value = aCellRef.Text & cTextSeparator & aCellRem.Text ' (sic)
.Characters(Start:=Len(aCellRef.Text) + 2, Length:=Len(aCellRem.Text)).Font.Superscript = True
End With
End If
Next
End Sub
source
share