In a shared workbook, I have the following macro that runs perfectly, linked to a button on a ribbon. However, if the same code is inserted into the VBA Workbook BeforeClose window, I get the following message, "The command could not be completed by using the range specified. Select a single cell within the range and try the command again." The macro stops on the 'Selection.AutoFilter' function.
Please Login or Register to view this content.
Bookmarks