Hi,
I'm pretty much a newbie at macros and so this may or may not be incredibly simple for some of you..
I have some excel spreadsheet where I want to delete all of the data in columns AA:AH apart from the headers.
There are some blanks in the table which is making it a bit tricky.
I tried on the macro recorder - starting at cell z1, pressing Ctl down, (as there are no blanks in column z) and then going right one cell and then selecting everything from there to cell AH2 and then deleting. However, vba records the cell "AA569" as soon as I go right from the bottom of column z, rather than recording the last cell in the column AA. Therefore, when I try using the macro on a different data sheet, this macro does not work.
Please let me know if you have a solution.
Thanks,
I'm pretty much a newbie at macros and so this may or may not be incredibly simple for some of you..
I have some excel spreadsheet where I want to delete all of the data in columns AA:AH apart from the headers.
There are some blanks in the table which is making it a bit tricky.
I tried on the macro recorder - starting at cell z1, pressing Ctl down, (as there are no blanks in column z) and then going right one cell and then selecting everything from there to cell AH2 and then deleting. However, vba records the cell "AA569" as soon as I go right from the bottom of column z, rather than recording the last cell in the column AA. Therefore, when I try using the macro on a different data sheet, this macro does not work.
Please let me know if you have a solution.
Thanks,