Consulting

Results 1 to 2 of 2

Thread: Adding comments

  1. #1

    Adding comments

    im trying to add a comment after i enter some data, but the formula that im using adds the coment to the bottom cell. pls tell me what im doing wrong.

    Private Sub Worksheet_Change(ByVal Target As Range) 
    ActiveCell.AddComment
    ActiveCell.comment.Visible = False
    ActiveCell.comment.Text Text:="Price as of:" & Now
    End Sub
    Last edited by johnske; 07-06-2005 at 03:56 PM. Reason: added VBA tags

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Private Sub Worksheet_Change(ByVal Target As Range)
    Target.AddComment
    Target.comment.Visible = False
    Target.comment.Text Text:="Price as of:" & Now
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •