Can I have a macro delete columns in a spreadsheet that I want to discard based on the column heading?
I want the macro to delete the same headers each time it is run. The content is static: Example I want to delete columns with these headings. These should always be in the same position on the spreadsheet.
I get spreadsheets from our IT department that have about 30-75 headings, most of which I want to automatically delete for the reports I need.
Example:
A1 ID
B1 RECEIPT_NO
C1 FIRST_NAME
D1 LAST_NAME
E1 SPOUSE_FIRST_NAME DELETE THIS COLUMN
F1 SPOUSE_LAST_NAME DELETE THIS COLUMN
G1 DATE_CREDITED
H1 CREDIT_AMOUNT
I1 FIRST_ENTRY
J1 PRIMARY_STAFF
K1 SECONDARY_STAFF
Bookmarks