+ Reply to Thread
Results 1 to 4 of 4

Empty cells with criteria

  1. #1
    Registered User
    Join Date
    11-12-2007
    Location
    Dordrecht, Netherlands
    MS-Off Ver
    2016
    Posts
    35

    Exclamation Empty cells with criteria

    Hi All,

    I'd like to delete all the cells (content) in a sheet with some given criteria. Example is that all the exact letters between C and Z have to be deleted. I have a macro which deletes all the numbers between 10 and 10000. and a macro which deletes all cells with some values starting with the criteria. However I would like them to delete only the cell if the value is exactly "A" and not if it is "AA" of "=A32" etc

    Example code for all text:
    Please Login or Register  to view this content.
    Plz help! It seems so simple, but I can't get it to work....
    Last edited by Reinder; 11-14-2007 at 08:46 AM.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Try to modify you macro so:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    11-12-2007
    Location
    Dordrecht, Netherlands
    MS-Off Ver
    2016
    Posts
    35
    tnx! However it now seems to get stuck on the next piece of code?

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-12-2007
    Location
    Dordrecht, Netherlands
    MS-Off Ver
    2016
    Posts
    35
    mmm, my bad....it now seems to work!! tnx!!

    Please Login or Register  to view this content.
    Problem was occuring because there where no values to select. Is there some line that does not make the function crash? (end if??)

+ 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