![]() |
![]() |
|
|||||||
| 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: Feb 2002
Location: Georgia USA
Posts: 544
|
How can you made a Marco add a comment in the active cell, I want a input box to come up an what is typed in it will be put in the comment, I tried is but it want work. I am using '97. Thanks
Sub Add_Comment() ActiveCell.AddComment Comment = InputBox("Enter comment here") ActiveCell.Comment.Visible = False End Sub |
|
|
|
|
|
#2 |
|
Join Date: Mar 2002
Posts: 5
|
Try this :-
Dim comment As Variant comment = InputBox("Enter comment here") If comment = False Then Exit Sub ActiveCell.NoteText comment |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Georgia USA
Posts: 544
|
That works Thanks
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|