Forum Discussion
Daniela33
Nov 26, 2021Copper Contributor
Convert column into notes and apply to other columns
Hello,
I have a curiosity. Can I convert some column into notes and apply those notes to other column?
For example, how do I convert the last three column into notes and apply them to the Injury Location (Just a sample, not related to the actual information in the excel).
Thank you!
8 Replies
You could run a macro like this:
Sub CreateComments() Dim r As Long Dim m As Long m = Range("L:N").Find(What:="*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row For r = 2 To m Range("B" & r).AddComment Text:=Range("L" & r).Value & " " & _ Range("M" & r).Value & " " & Range("N" & r).Value Next r End Sub
- LizeMarieBrass Contributor
HansVogelaar Hans I looked absolutely everywhere for this. Thank you so very much for Charing your knowledge. This VBA formula also create notes for blank cells, how can I avoid or ignore blank cells and only make notes where there are "*"
If you can also share a VBA formula to use xlookup and then copy and paste exciting notes in a range
Can you explain your second question (about XLOOKUP) in more detail?