+ Reply to Thread
Results 1 to 3 of 3

How to retrieve cell comment

  1. #1
    Registered User
    Join Date
    05-22-2014
    Posts
    2

    Thumbs down How to retrieve cell comment

    1 - I am familiar with creating a link between a cell in FileA and another cell in FileB:

    ='\\MyServer\MyPath\MyFolder\[FileB.xlsm]MyWorksheet'!F6

    In this case, the value of cell F6 in FileB is returned to the cell in FileA. FileB does not to be open for this to work well.

    2 - If a file is open, one can collect the cell comment:

    Dim txt as string
    txt = Cells(6, 1).Comment.Text

    My question: Is there a way to collect the comment using a link similar to #1?
    I am hoping for something faster than opening and closing hundreds of file to collect each comment.

    Thank you!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,653

    Re: How to retrieve cell comment

    Hi perhpas have a look at this page under "Copy comments form all sheets to another worksheet"

  3. #3
    Registered User
    Join Date
    05-22-2014
    Posts
    2

    Re: How to retrieve cell comment

    This location has some good stuff, but not what I'm looking for.

    This link in a cell will return a value:

    ='\\MyServer\MyPath\MyFolder\[FileB.xlsm]MyWorksheet'!F6

    This works well because I do not need to open the file. There are hundreds of files and each is large.

    So ... can I modify the link to return a comment rather than the value?

    Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Disable Delete Comment, Edit Comment, Show/Hide Comment
    By Shanthan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2013, 06:12 AM
  2. Write a macro to retrieve data according to comment and sort for date
    By Sa DQ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2012, 02:27 AM
  3. Retrieve photos linked to a comment/hyperlink
    By nwalt001 in forum Excel General
    Replies: 0
    Last Post: 01-10-2012, 09:56 PM
  4. Retrieve image in cell comment
    By JollyRodger in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2011, 05:39 PM
  5. Excel 2007 : Retrieve data from cell comment
    By navajo_23 in forum Excel General
    Replies: 4
    Last Post: 08-03-2010, 05:52 AM

Tags for this Thread

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