+ Reply to Thread
Results 1 to 8 of 8

deleting comments in blank cells

  1. #1
    Registered User
    Join Date
    04-22-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2007
    Posts
    32

    Thumbs up deleting comments in blank cells

    Is there a way to delete comments in a selected range of blank cells?

    Thanks again in anticipation.
    Last edited by Fairport; 05-06-2009 at 07:19 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: deleting comments in blank cells

    Something like
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: deleting comments in blank cells

    Like this:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    04-22-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: deleting comments in blank cells

    Thanks guys for both solutions, spoilt for choice now!! Both will be used in different parts of the project, (fair play and all that)

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: deleting comments in blank cells

    Or ...
    Please Login or Register  to view this content.
    Last edited by shg; 05-06-2009 at 07:33 PM.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: deleting comments in blank cells

    The code that I posted will clear comments fromany blank cells containing comments within the selected range. It doesn't loop through all the cells in the selection and so is potentially faster.

  7. #7
    Registered User
    Join Date
    04-22-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: deleting comments in blank cells

    Indeed royUK, it is faster. The spreadsheet I've inserted the code in has over 7500 data rows. The other method works well but is noticably slower. Thank you shg for your example, I'll try that one too when I get the oportunity.
    Thanks everyone for your help on this one. So many routes to the same destination!

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: deleting comments in blank cells

    There's often several approaches to an Excel problem - it's always good to see different suggestions. You could avoid using Selection if you are working with all the data on a particular sheet - just use UsedRange

+ 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