Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CoolKerala
 
Posts: n/a
Default paste command not work in 'comment'

how do i paste copied values in a comment
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

If you want to copy a range of values into a comment, here's a start. Select
the range of values first, then run the macro. It'll prompt you for a cell
location to which you'll create a comment containing the values.

Sub CopyIntoComment()
Dim cell As Range
Dim strAllCells As String
Dim strComLocation As String

If Intersect(ActiveSheet.UsedRange, Selection) Is Nothing Then
MsgBox "Nothing selected."
Exit Sub
End If

strComLocation = InputBox("Enter cell where comment will go:")
If strComLocation = "" Then Exit Sub

For Each cell In Selection
strAllCells = strAllCells & cell
Next

With Range(strComLocation)
If Not .Comment Is Nothing Then
MsgBox "Comment already in cell."
Exit Sub
End If
.AddComment
.Comment.Text Text:=strAllCells
End With

End Sub

---
HTH
Jason
Atlanta, GA


"CoolKerala" wrote:

how do i paste copied values in a comment

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

What did you copy?

If you copied the cell, try copying the contents of the cell from the formula
bar.

CoolKerala wrote:

how do i paste copied values in a comment


--

Dave Peterson
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
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
Paste link does not work properly kurb Excel Worksheet Functions 1 May 27th 05 05:56 PM
Can't Copy and Paste between Excel 2003 Workbooks wllee Excel Discussion (Misc queries) 6 March 30th 05 02:59 PM
excel - numbers as text Thuferhawat New Users to Excel 12 January 24th 05 09:29 PM
a comment plugin & copy paste directly from excel to comment ? fr. RFM Excel Worksheet Functions 0 December 1st 04 11:29 PM


All times are GMT +1. The time now is 02:24 PM.

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

About Us

"It's about Microsoft Excel"