Remove comments from tooltip insert value into adjacent cell

AustinATL

New Member
Joined
Oct 6, 2004
Messages
15
Hi,
I have a sheet with 200 rows and every cell has a comment. The information I need is in the comments. Is there a way to pull the information out of the comment and put the values into the adjacent cell?
Thanks in advance,
Austin
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hello Austin,
Kind of a lot of gray area as to what exactly you're doing but perhaps this will
give you a start.
If you intend to use vba and if by 'adjacent cell' you mean the next cell to the right
then something like this should help.
Code:
Selection.Offset(, 1).Value = Selection.Comment.Text
If this is not what you're looking for then post back with more details and we'll see
where we need to go from here.
 
Upvote 0
Good evening AustinATL

You code use a really simple custom function like this :

Code:
Function CellComm(Rng As Range)
Application.Volatile
CellComm = Application.WorksheetFunction.Substitute(Rng.Comment.Text, Chr(10), "")
End Function

Stick the code into a norml module, and then use something like this in B1 to show the comment in A1 :

=CellComm(A1)

HTH

DominicB
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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