+ Reply to Thread
Results 1 to 7 of 7

Macro function Get Comment Text function with format

  1. #1
    Registered User
    Join Date
    01-31-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Macro function Get Comment Text function with format

    Hi,
    I have stumbled upon this macro, which works perfect for me: I use index and match to pull the comment text from the specific cell. However, all the text formatting is lost: paragraphs, txt color, bold etc. Is there any way to modify this code to pull all the text with existing formatting??? Thanks a lot.

    Please Login or Register  to view this content.
    Last edited by guynextdoor; 02-27-2010 at 08:25 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Macro function Get Comment Text function with format

    Hello guynextdoor,
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    01-31-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Macro function Get Comment Text function with format

    Quote Originally Posted by Leith Ross View Post
    Hello guynextdoor,
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Sorry about that. Is it good now?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Macro function Get Comment Text function with format

    Hello guynextdoor,

    Thanks, that's perfect.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Macro function Get Comment Text function with format

    Hello guynextdoor,

    The Comment text is formatted by the TextFrame object of the Shape object (Comment rectangle). So, you can extract the text but it will only be text. Formatting requires a container object to display it in a modified form: bold, red, etc. Where is the text going to?

  6. #6
    Registered User
    Join Date
    01-31-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Macro function Get Comment Text function with format

    Quote Originally Posted by Leith Ross View Post
    Hello guynextdoor,

    The Comment text is formatted by the TextFrame object of the Shape object (Comment rectangle). So, you can extract the text but it will only be text. Formatting requires a container object to display it in a modified form: bold, red, etc. Where is the text going to?
    Leith,
    Thanks for your reply.
    The text from the comment will be going to a merged cell C24 (Report spreadsheet). Ive attached a sample. How do I format this cell to appear in specific format? Thanks again.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-31-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Macro function Get Comment Text function with format

    Noone has any suggestions? COme on Excel Gurus, help me out here, so I can go in peace and watch Canada win hockey gold
    Last edited by guynextdoor; 02-28-2010 at 12:48 PM.

+ Reply to Thread

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