+ Reply to Thread
Results 1 to 4 of 4

ClearContents all rows except headers in a dynamic range

  1. #1
    Registered User
    Join Date
    01-12-2012
    Location
    Rockland, WI
    MS-Off Ver
    Excel 2016
    Posts
    56

    ClearContents all rows except headers in a dynamic range

    I have a vehicle maintenance sheet of the most recent vehicle maintenance records, created from another table of all maintenance records. I'm fumbling to create the code to clear the existing records which is a dynamic range before filling the sheet.

    Thanks
    Attached Files Attached Files

  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,258

    Re: ClearContents all rows except headers in a dynamic range

    Hello jdfjab,

    Welcome to the Forum!

    Add a standard Module to your VBA project and then paste this macro into it.
    Please Login or Register  to view this content.
    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-12-2012
    Location
    Rockland, WI
    MS-Off Ver
    Excel 2016
    Posts
    56

    Re: ClearContents all rows except headers in a dynamic range [solved]

    Thank you.
    Worked like a charm.
    I used:

    Please Login or Register  to view this content.

  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,258

    Re: ClearContents all rows except headers in a dynamic range [solved]

    Hello jdfjab,

    Nice work on modifying the code. Glad I could help. Can this thread be marked 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