![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Mike T.
Posts: 180
|
I have a List of Rows approximately 500 Rows Long in Column A. Each cell has a different Comment which is adjacent in Col B, same Row. I want to run a Macro or something that will Insert the Definition (Col B) into each respective cell's Comment in Col A, including Formatting the Comment if possible. Right now, I have to go through the Menu one at a time.
Thanks for the help. |
|
|
|
|
|
#2 |
|
Guest
Posts: n/a
|
Dim intCnt As Integer
intCnt = 1 With ActiveSheet Do Until .Cells(intCnt, 1) = "" .Cells(intCnt, 1).AddComment.Text .Cells(intCnt, 2).Value intCnt = intCnt + 1 Loop End With |
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Mike T.
Posts: 180
|
Hi: I copied and pasted this into a macro sheet and nothing happened. Where do you start on the actual worksheet? Do you select the cell that has the Comment and Run or, do you select the cell that has the comment info then run?
Thanks |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
I believe you have to select the start of your data in column A then run his macro. Ivan |
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Ahmedabad Gujarat
Posts: 303
|
Friend,
Download a small file commentpasting from my website. It is in download section http://www.pexcel.com/download.htm nishith desai |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|