ChristineJ
Well-known Member
- Joined
- May 18, 2009
- Messages
- 771
- Office Version
- 365
- Platform
- Windows
Using this code to enter values from columns in row 5 into a comment box. Some values are text and some are numbers. I would like the numbers have comma separators.
Code:
For i = 78 To 85
commentText = commentText & Cells(5, i).Value
commentText = commentText & vbCrLf
Next
I tried [I]commentText = format(commentText, "#,###") & vbCrLf [/I]on the third line. I did add the comma separators to the numbers, but it also truncated some of the text comments. Is there a way to do it without affecting the text comments? Thanks