I have the following function in vba:
Function ConcatinateAllCellValuesInRange(sourceRange As Excel.Range) As String
Dim finalValue As String
Dim cell As Excel.Range
i = 0
For Each cell In sourceRange.Cells
i = i + 1
Rzad = cell.Row
finalValue = finalValue & CStr(i) & ". " & CStr(Sheets(1).Cells(Rząd, 6)) & "/" & CStr(Sheets(1).Cells(Rząd, 7)) & ": " & Format(cell.Value, Bold) & "; " & vbCrLf
Next cell
ConcatinateAllCellValuesInRange = finalValue
End Function
I want to make a part of the text bold but 'Format(cell.Value, Bold)' does not work. Can you suggest a solution?