Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jakobshavn Isbrae
 
Posts: n/a
Default copy cells to a comment

Works perfectly !
I am amazed how fast you made this for me.
You have saved me hours of typing.
Thank you once more.
--
jake


"Ardus Petus" wrote:

Select the 30 cells, then run this macro:

'--------------------------------------------
Sub InsertComment()
Dim rCell As Range
Dim sText As String

For Each rCell In Selection
sText = sText & rCell.Text & vbLf
Next rCell

On Error Resume Next
Set rCell = Range(InputBox("Cell to comment"))
On Error GoTo 0
If rCell Is Nothing Then
MsgBox "Invalid input"
Exit Sub
End If
rCell.ClearComments
rCell.AddComment sText
End Sub
'-------------------------------------------------

HTH
--
AP

"Jakobshavn Isbrae" a écrit
dans le message de news:
...
I have about 30 items in cells in a single column that I would like to copy
and paste in a single column in the comment.

I can select the cells in the worksheet and copy them, but in the comment
my
CNTRLv gets ignored.

I can't determine what I am doing wrong.

Thank you for your help.
--
jake


"Ardus Petus" wrote:

Do you want each cell of the set to have its own comment (cells
contents)?

--
AP

"Jakobshavn Isbrae" a écrit
dans le message de news:
...
How do I copy the contents of a set of cells into a comment ?

Thank you very much in advance
--
jake






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro, Copy Selected Cells Down a Column DB33 Excel Discussion (Misc queries) 9 February 15th 06 09:29 PM
Copy Selected cells down a row with macro DB33 Excel Discussion (Misc queries) 1 February 15th 06 05:33 PM
copy a block of cells florin Excel Discussion (Misc queries) 2 October 12th 05 03:16 PM
How to use macros to copy a range of cells which can exclude some cells which I didn't want to be copied? excelnovice Excel Worksheet Functions 2 September 25th 05 12:38 AM
copy & paste spreadsheet cells from excel to outlook to excel mismarple Excel Discussion (Misc queries) 1 September 20th 05 11:16 PM


All times are GMT +1. The time now is 01:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"