Greetings. Hope someone can help. My delete data form function references a list (headers) that when selected needs to delete the associated range, but keeps the list name. Code below. Without the If Not foundCell the code works fine but only deletes the first headers data. Selecting any other headers, nothing happens of course. I'm not sure how to define the foundCell as i so that it will loop through the header list if that makes sense. I'm pretty novice at VBA so please forgive my limited understanding. Oh yeah, also this is a protected sheet. I have a code that can unlock and lock it when changes need to be made to the sheet, but not sure where that would go...before the ClearContents but after the searchRange? Thank you for your time.
Bookmarks