![]() |
how do I paste excel text into a comment box?
I have data in excel in muliple rows and columns, I want to copy this data
and paste it into a comment. Any suggestions? |
how do I paste excel text into a comment box?
Select the cells (any rows or columns) and run this macro:
Sub commentset() Dim r As Range Dim s As String s = "" For Each r In Selection s = s & r.Value Next With Range("K9") .AddComment .Comment.Visible = False .Comment.Text Text:=s End With End Sub I picked K9 as the destination to hold the comment, you can pick anything you want. -- Gary's Student "Bonnie" wrote: I have data in excel in muliple rows and columns, I want to copy this data and paste it into a comment. Any suggestions? |
All times are GMT +1. The time now is 03:59 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com