Hello, my knowledge of VBA is very elementary, a fact I intend to change with one of your upcoming classes. Unfortunately I cannot wait until January to solve this problem!
I have a set of user-driven spreadsheets that are manually updated with data on a monthly basis from our department. I would like to clear all data in a specific range prior to its being updated.
I attempted to use include this command in my updating VBA:
Sheets("A Sheet").Select
Range("F1:G65000").Clear
It works fine, but does not clear any cells filtered out, which happens all the time because these are working documents that users regularly filter, sort etc.
Can anyone suggest some VBA that clears all cells within a range regardless of whether or not it is hidden or filtered out?
I have a set of user-driven spreadsheets that are manually updated with data on a monthly basis from our department. I would like to clear all data in a specific range prior to its being updated.
I attempted to use include this command in my updating VBA:
Sheets("A Sheet").Select
Range("F1:G65000").Clear
It works fine, but does not clear any cells filtered out, which happens all the time because these are working documents that users regularly filter, sort etc.
Can anyone suggest some VBA that clears all cells within a range regardless of whether or not it is hidden or filtered out?