Hi All,
I've got a macro I have updated, based on some work from the past. It now sends the comments to Excel. The thing I noticed is that in using the Comments.Range.Text to get a copy of the comment, any formatting that was applied in the Comment is removed. This does not happen if I write the comment to a word table, only when I do it to a Excel cell.
For example:
If the comment says
"This isn't great, we need to repeat the newline and then make sure we display some numbered lists in it.
There is the newline above here
1. Item 1
2. Item 2"
it gets returned as a stream of
"This isn't great, we need to repeat the newline and then some numbered lists in it.There is the newlineItem 1Item 2"
when called by
and n is just a counter for a for loop
Any idea how to preserve the formatting?
I've got a macro I have updated, based on some work from the past. It now sends the comments to Excel. The thing I noticed is that in using the Comments.Range.Text to get a copy of the comment, any formatting that was applied in the Comment is removed. This does not happen if I write the comment to a word table, only when I do it to a Excel cell.
For example:
If the comment says
"This isn't great, we need to repeat the newline and then make sure we display some numbered lists in it.
There is the newline above here
1. Item 1
2. Item 2"
it gets returned as a stream of
"This isn't great, we need to repeat the newline and then some numbered lists in it.There is the newlineItem 1Item 2"
when called by
VBA Code:
Celltofill = oDoc.Comments(n).Range.Text
Any idea how to preserve the formatting?
Last edited: