PC Review


Reply
Thread Tools Rate Thread

Copy Comments to a cell

 
 
=?Utf-8?B?Q0xS?=
Guest
Posts: n/a
 
      1st Nov 2006
Hi All.........
Can anyone please tell me how to interrogate all the cells in column O, and
if there's a CommentBox applied, to copy the Text from the CommentBox to a
cell in the same row but in column W? If no CommentBox, then just leave the
corresponding cell in column W empty.

TIA
Vaya con Dios,
Chuck, CABGx3


 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      1st Nov 2006
Sub demo()
Dim r As Range, rr As Range
Set r = ActiveSheet.UsedRange.SpecialCells(xlCellTypeComments)
Set r = Intersect(r, Columns("O"))
For Each rr In r
rr.Offset(0, 8).Value = rr.Comment.Text
Next
End Sub
--
Gary's Student


"CLR" wrote:

> Hi All.........
> Can anyone please tell me how to interrogate all the cells in column O, and
> if there's a CommentBox applied, to copy the Text from the CommentBox to a
> cell in the same row but in column W? If no CommentBox, then just leave the
> corresponding cell in column W empty.
>
> TIA
> Vaya con Dios,
> Chuck, CABGx3
>
>

 
Reply With Quote
 
=?Utf-8?B?Q0xS?=
Guest
Posts: n/a
 
      1st Nov 2006
Hi Gary"s Student............
Your code works super-well..........thank you muchly, kind Sir.

Vaya con Dios,
Chuck, CABGx3



"Gary''s Student" wrote:

> Sub demo()
> Dim r As Range, rr As Range
> Set r = ActiveSheet.UsedRange.SpecialCells(xlCellTypeComments)
> Set r = Intersect(r, Columns("O"))
> For Each rr In r
> rr.Offset(0, 8).Value = rr.Comment.Text
> Next
> End Sub
> --
> Gary's Student
>
>
> "CLR" wrote:
>
> > Hi All.........
> > Can anyone please tell me how to interrogate all the cells in column O, and
> > if there's a CommentBox applied, to copy the Text from the CommentBox to a
> > cell in the same row but in column W? If no CommentBox, then just leave the
> > corresponding cell in column W empty.
> >
> > TIA
> > Vaya con Dios,
> > Chuck, CABGx3
> >
> >

 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      1st Nov 2006
You are very welcome.
--
Gary's Student


"CLR" wrote:

> Hi Gary"s Student............
> Your code works super-well..........thank you muchly, kind Sir.
>
> Vaya con Dios,
> Chuck, CABGx3
>
>
>
> "Gary''s Student" wrote:
>
> > Sub demo()
> > Dim r As Range, rr As Range
> > Set r = ActiveSheet.UsedRange.SpecialCells(xlCellTypeComments)
> > Set r = Intersect(r, Columns("O"))
> > For Each rr In r
> > rr.Offset(0, 8).Value = rr.Comment.Text
> > Next
> > End Sub
> > --
> > Gary's Student
> >
> >
> > "CLR" wrote:
> >
> > > Hi All.........
> > > Can anyone please tell me how to interrogate all the cells in column O, and
> > > if there's a CommentBox applied, to copy the Text from the CommentBox to a
> > > cell in the same row but in column W? If no CommentBox, then just leave the
> > > corresponding cell in column W empty.
> > >
> > > TIA
> > > Vaya con Dios,
> > > Chuck, CABGx3
> > >
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy comments to cell as normal text? =?Utf-8?B?TlBW?= Microsoft Excel Misc 1 29th May 2007 08:01 AM
I need to copy only those cell where comments is there =?Utf-8?B?VmltYWwgSw==?= Microsoft Excel Worksheet Functions 1 18th May 2007 02:12 PM
Re: How top copy cell comments Dave Peterson Microsoft Excel Programming 3 9th Dec 2006 12:40 AM
Creating Macro to copy information from cell into another cell using Add Comments pmipalma Microsoft Excel Programming 2 6th Oct 2006 07:46 PM
how can i copy comments into a cell so that it appears as text =?Utf-8?B?YmlsbHdlc3Q=?= Microsoft Excel Misc 1 17th Nov 2004 02:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:59 AM.