In Excel 2000, I have a vba macro that selects the worksheet, unhides columns that were previously hidden and saves the spreadsheet under a new name. This is the code:
Cells.Select
Selection.EntireColumn.Hidden = False
ThisWorkbook.SaveAs "C:\Invoices\excel_upload.xls"
The problem is that in the new workbook, the spreadsheet is still selected. It seemed to me that there should be a Cells.Deselect command, but that doesn't seem to be the case. Does anyone know how I can deselect the cells after unhiding the columns and before saving the workbook?
Thanks very much.
Sue
Cells.Select
Selection.EntireColumn.Hidden = False
ThisWorkbook.SaveAs "C:\Invoices\excel_upload.xls"
The problem is that in the new workbook, the spreadsheet is still selected. It seemed to me that there should be a Cells.Deselect command, but that doesn't seem to be the case. Does anyone know how I can deselect the cells after unhiding the columns and before saving the workbook?
Thanks very much.
Sue