Results 1 to 2 of 2

VB Code for Comments

Threaded View

jo15765 VB Code for Comments 10-20-2010, 06:24 PM
Leith Ross Re: VB Code for Comments 10-20-2010, 06:41 PM
  1. #1
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Exclamation VB Code for Comments

    Two questions. First, I have one sheet that has account information in it with comments, and on the other sheet, I was wanting to copy the comments over. I found the following code that would work as a function to copy comments over, but I can't seem to make it work from sheet to sheet, only within the sheet I am working on:
    Function getComment(incell) As String
    ' aceepts a cell as input and returns its comments (if any) back as a string
    On Error Resume Next
    getComment = incell.Comment.Text
    End Function
    Any ideas on this one?


    Second, I was wondering if there was a way to extract the comments without displaying the username. Now the part that gets tricky is, I want the username to display of who input the comment BUT when I am extracting the comment using the function I do not want it to copy over the username that input the comment.

    Any help will be GREATLY appreciated!!!
    Last edited by Leith Ross; 10-20-2010 at 06:39 PM. Reason: Added Code tags

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1