Hi all! I'm by no means an excel programming expert, so I've been unsuccessful in figuring out why my code that has always worked flawlessly is now unhappy...
I have a sheet called "Preparation" that has a table (columns A-L) and a few command buttons that automatically sort the table based on the desired column. One button that has stopped working sorts my table based on the date column (which is column K in this case). The button is called DateSort.
To construct the code for this button, I basically just recorded a macro and pasted that code into the sheet it pertains to. The code is extremely basic and has never given me problems. Now when I run it I get the 'Application-defined or object-defined error'. The .Apply line is highlighted.
One thought I had was I recently updated my machine from MS Office 2007 to 2013. I'm almost positive it was working at some point after the upgrade, but not 100%. Is there a reason the upgrade would cause the error? A setting that needs to be changed in options? Any help would be greatly appreciated!
I have uploaded a sample workbook, or here is the code located in Sheet1 (Preparation):
Bookmarks