Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Adding Cell Commnets together

I am trying to string together the comments in several columns into a "Meta"
comment in the "Total" column. The idea is to bring together all of the rows
comments together as one large comment.

I have tried ths and severla other ways to accomplish my task, but cannot
get it to work.
For q = C To 3 Step -3
Dim cmt As Comment
Set cmt = Cells(i, q).Comment
Line_cmt = Cells(i, (C + 1))
If Not cmt Is Nothing Then
Line_cmt = Line_cmt & AddComment.Text
End If
Next q
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Adding Cell Commnets together



for i = 1 to 10
Line_cmt = ""
For q = C To 3 Step -3
Line_cmt =lint_cmt & cells(i,q).NoteText
Next q
msgbox Line_cmt
cells(i,C+3).NoteText Line_cmt
Next i

If your final comment string exceeds 255 characters in length, then you will
need to use a loop at the end.

--
Regards,
Tom Ogilvy


"Jeff" wrote in message
...
I am trying to string together the comments in several columns into a

"Meta"
comment in the "Total" column. The idea is to bring together all of the

rows
comments together as one large comment.

I have tried ths and severla other ways to accomplish my task, but cannot
get it to work.
For q = C To 3 Step -3
Dim cmt As Comment
Set cmt = Cells(i, q).Comment
Line_cmt = Cells(i, (C + 1))
If Not cmt Is Nothing Then
Line_cmt = Line_cmt & AddComment.Text
End If
Next q



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Adding Cell Commnets together

Tom Thanks a ton for the code fix, I thought I was going to kill myself. The
biggest problem was getting the variables Dim'd correctly, once I looked inot
the Help file I was on my way.

"Tom Ogilvy" wrote:



for i = 1 to 10
Line_cmt = ""
For q = C To 3 Step -3
Line_cmt =lint_cmt & cells(i,q).NoteText
Next q
msgbox Line_cmt
cells(i,C+3).NoteText Line_cmt
Next i

If your final comment string exceeds 255 characters in length, then you will
need to use a loop at the end.

--
Regards,
Tom Ogilvy


"Jeff" wrote in message
...
I am trying to string together the comments in several columns into a

"Meta"
comment in the "Total" column. The idea is to bring together all of the

rows
comments together as one large comment.

I have tried ths and severla other ways to accomplish my task, but cannot
get it to work.
For q = C To 3 Step -3
Dim cmt As Comment
Set cmt = Cells(i, q).Comment
Line_cmt = Cells(i, (C + 1))
If Not cmt Is Nothing Then
Line_cmt = Line_cmt & AddComment.Text
End If
Next q




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
How can I copy a value from a cell and paste it into another cell while adding it to the previous value in that cell [email protected] Excel Worksheet Functions 2 November 7th 07 09:39 AM
Adding numbers in one cell and showing total in seperate cell Deernad Construction Excel Discussion (Misc queries) 12 November 29th 05 07:32 PM
adding a formula in a cell but when cell = 0 cell is blank Mike T Excel Worksheet Functions 5 May 31st 05 01:08 AM
insert commnets in locked cells Randy Excel Worksheet Functions 0 February 16th 05 04:59 PM
Dynamically adding an in-cell drop-down list (i.e. Validation Object) to a cell? debartsa Excel Programming 5 March 5th 04 08:45 AM


All times are GMT +1. The time now is 05:22 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"