Hello all, I've no doubt this is so simple it's elsewhere in the forum but I've spent 90 minutes trying to find it and all my searches return something much complicated that I need, understand, or am ready for!!
Basically, I have a direct export setup from a database that comes off with Columns A - IH, and contains a load of rubbish that I don't need for my purposes.
What I'd like is a Macro that just says "delete columns A, C, E, Z, AA, DR" etc, so I can just trim the export down to the data that I actually need.
I have tried something like
Columns("B").Delete
Columns("D:G").Delete
Columns("J").Delete
But that of course recalcualtes, so after it deletes column B, it then starts again and what it now thinks is in Column D was originally in Column E. What I'd like is a macro that does it all based on the "starting point" if that makes sense.
If someone is able to help it would be greatly appreciated! Thanks!
Ps. I can set the macro by "column name" if needs be as they'll always be consistent, but using Column Letter would be preferable.
Basically, I have a direct export setup from a database that comes off with Columns A - IH, and contains a load of rubbish that I don't need for my purposes.
What I'd like is a Macro that just says "delete columns A, C, E, Z, AA, DR" etc, so I can just trim the export down to the data that I actually need.
I have tried something like
Columns("B").Delete
Columns("D:G").Delete
Columns("J").Delete
But that of course recalcualtes, so after it deletes column B, it then starts again and what it now thinks is in Column D was originally in Column E. What I'd like is a macro that does it all based on the "starting point" if that makes sense.
If someone is able to help it would be greatly appreciated! Thanks!
Ps. I can set the macro by "column name" if needs be as they'll always be consistent, but using Column Letter would be preferable.