+ Reply to Thread
Results 1 to 2 of 2

Need help with code to delete row based on date in column J

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Minnapolis
    MS-Off Ver
    Excel 2010
    Posts
    31

    Need help with code to delete row based on date in column J

    I need to delete the row if there is a date (any date) in column J. My current code is only deleting one row then stopping and leaving the rest... what is wrong?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Need help with code to delete row based on date in column J

    you can not use For Each c In .Cells because when you delete a row cells counting fails

    Please Login or Register  to view this content.
    Last edited by patel45; 09-28-2012 at 01:09 PM.
    If solved remember to mark Thread as solved

+ 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