I use this function to split comment text to multiple rows:
I paste the comment from a cell on another sheet to cell B6. The comment text runs from A6:A11 using the code above. In G7 I have a formula that matches the value in A7 with data from row A on the Options sheet and returns the value from column B:
Unfortunately, G7 will not populate. I figured it was some sort of text format issue so I tested it by copying A7 on the SendFloorRequest sheet (top) and pasting it on A11 on the Options sheet (bottom). It then worked correctly. Not sure what is causing this.
Excel Formula:
Function GetComment(cl As Range) As Variant
GetComment = Application.Transpose(Split(cl.Comment.Text, vbLf))
End Function
I paste the comment from a cell on another sheet to cell B6. The comment text runs from A6:A11 using the code above. In G7 I have a formula that matches the value in A7 with data from row A on the Options sheet and returns the value from column B:
Unfortunately, G7 will not populate. I figured it was some sort of text format issue so I tested it by copying A7 on the SendFloorRequest sheet (top) and pasting it on A11 on the Options sheet (bottom). It then worked correctly. Not sure what is causing this.