I am looking for a Macro that will delete all empty columns to the right of my data set and then delete all rows below my data set.
Row 1 will always contain the column headings to be used to determine the last column (example: Row 1 contains headings in columns A-D, I need all columns E - the last column in spreadsheet deleted)
Column A will always contain a value to be used to determine the last row (example: Column A contains data in Rows 1-4, I need all rows 5 - last row in spreadsheet deleted)
I have found posts that help determine the last column/row, but, I am failing at getting the Macro to select everything to the right and below and delete. I need this to happen as someone could have inadvertently added some formatting to a cell and I need to insure that the only data left in the spreadsheet is the data table.
All advanced help is greatly appreciated.
Row 1 will always contain the column headings to be used to determine the last column (example: Row 1 contains headings in columns A-D, I need all columns E - the last column in spreadsheet deleted)
Column A will always contain a value to be used to determine the last row (example: Column A contains data in Rows 1-4, I need all rows 5 - last row in spreadsheet deleted)
I have found posts that help determine the last column/row, but, I am failing at getting the Macro to select everything to the right and below and delete. I need this to happen as someone could have inadvertently added some formatting to a cell and I need to insure that the only data left in the spreadsheet is the data table.
All advanced help is greatly appreciated.