Be seen. Boost your question’s priority for more expert views and faster solutions
Private Sub UserForm_Initialize() Dim rngComments As Range Dim strcombuild As String Set rngComments = Range("Comments") strcombuild = "" With Me .CommandButton1.Caption = "Close" End With For Each rw In rngComments.Rows i = 1 If rw.Columns(1).Value = TaskID Then For Each cl In rw.Cells.Columns If i = 1 Then strcombuild = strcombuild & rw.Cells(1, i).Value Else strcombuild = strcombuild & " - " & rw.Cells(1, i).Value End If i = i + 1 Next cl strcombuild = strcombuild & "." & vbNewLine End If Next rw Me.Textbox1 = strcombuild End Sub
Join the community of 500,000 technology professionals and ask your questions.