+ Reply to Thread
Results 1 to 8 of 8

completely clear all rows after date

  1. #1
    Forum Contributor
    Join Date
    10-24-2008
    Location
    England
    Posts
    146

    completely clear all rows after date

    Is there some vba code that will completly remove all rows after a certain date in A column, the date is in B2. Dates are listed in A column.

    When i say completely remove i mean delete, clear colours, remove borders,etc etc

    Thanks
    Last edited by Directlinq; 03-04-2009 at 06:55 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: completely clear all rows after date

    Perhaps:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-24-2008
    Location
    England
    Posts
    146

    Re: completely clear all rows after date

    That deletes the cells great but does not remove internal colours or boxes etc.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: completely clear all rows after date

    It deletes the rows in their entirety thus including any/all formatting on said cells.

    Are you running any VBA Events to set Formatting ?

  5. #5
    Forum Contributor
    Join Date
    10-24-2008
    Location
    England
    Posts
    146

    Re: completely clear all rows after date

    yes but this macro runs after the formatting macro has finished.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: completely clear all rows after date

    I have no idea what that means.. are you're formatting via a standard Sub Routine or via an Event ... if it's an Event (ie Worksheet_Change) then it doesn't matter what you do the Event will always fire and reformat the ranges as specified.

    Rather than guessing I would suggest you actually post a sample file with code so we can see what's happening.

  7. #7
    Forum Contributor
    Join Date
    10-24-2008
    Location
    England
    Posts
    146

    Re: completely clear all rows after date

    Sorry the formatting is a subroutine

  8. #8
    Forum Contributor
    Join Date
    10-24-2008
    Location
    England
    Posts
    146

    Re: completely clear all rows after date

    sorry got it sorted thanks for your help

+ 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