Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2008

Tip: Looking for answers? Try searching our database.

Is it possible to sequentially number the comments field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NickTheBatMan - 18 Apr 2008 15:40 GMT
Anyone out there clever enough to tell me how to sequentially populate
the comments field in cells... the problem I can see is that the cells
are in a grid of A5-10 through to i5 to 10, I want them populating
a5,a6,a7,a8,a9,a10,b5,b6 etc and when I get to i10 I want the sequence
to carry over to the next sheet...

Don't want much do I ;)

TIA

Nick
Rick Rothstein (MVP - VB) - 18 Apr 2008 17:22 GMT
It looks like rather than "sequentially" populating the Comment fields, you
are simply putting the cell's address into the Comment field. If that
observation is correct, then I do not know what you mean when you said "when
I get to i10 I want the sequence to carry over to the next sheet"? Do you
simply want to put the cell address into each cell with the Range("A5:I10")
on each sheet? If so, consider this macro...

Sub PutCellAddressIntoComment()
 Dim C As Range
 Dim WS As Worksheet
 Dim CurrentText As String
 For Each WS In Worksheets
   For Each C In WS.Range("A1:I10")
     If Not C.Comment Is Nothing Then
       '  If you do NOT want to preserve any existing
       '  Comment text then remove this next statement
       CurrentText = " - " & C.Comment.Text
       C.Comment.Delete
     End If
     C.AddComment LCase(C.Address(False, False)) & CurrentText
   Next
 Next
End Sub

Rick

> Anyone out there clever enough to tell me how to sequentially populate
> the comments field in cells... the problem I can see is that the cells
[quoted text clipped - 7 lines]
>
> Nick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.