copy Cell Notes to Cell

VenturSum

Board Regular
Joined
May 23, 2010
Messages
137
Hi,

I'm having some trouble copying a Cell's Notes/Comments into another cell and visa versa
- Characters beyond 255 are truncated, and
- The formatting is lost.


I want to display in a new worksheet, the data in all the comment boxes in another worksheet
- Currently I'm Using this code:

--------------
NewWs.Cells(lRow, lCol).Value = Ws.Cells(lDataRow, lDataCol).NoteText
--------------

Any thoughts on:
1) How to move over the data with out it being truncated
2) How to save the formatting. -- If the first word is bold, how can I save the bold in the new cell.

Any thoughts would be helpful.

John
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
The above solutions was close....

Here is how the code should read:

--------------------------

NewWs.Cells(lRow, lCol).Value = Ws.Cells(lDataRow, lDataCol).Comments.Text

--------------------------

See the last 2 qualifiers.

Enjoy.

John
 
Upvote 0

Forum statistics

Threads
1,217,045
Messages
6,134,243
Members
449,862
Latest member
Muhamad Irfandi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top