ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Sorting Data before close in shared workbook? (https://www.excelbanter.com/excel-programming/336866-sorting-data-before-close-shared-workbook.html)

Simon Lloyd[_638_]

Sorting Data before close in shared workbook?
 

Hi all,

I have a workbook that when closed all the data in a named range is
sorted by date in ascending order, however when i tried to share the
workbook closing any open copy caused an error "Method of unprotect
class failed" but i only have one sheet in the workbook locked and its
not the sheet that is being sorted, i removed protection from the sheet
and still get the same error, Any ideas?

Simon.


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=394485


Dave Peterson

Sorting Data before close in shared workbook?
 
It sounds like you didn't change the code to remove the lines that tried to
unprotect the sheet (and reprotect the sheet???).



Simon Lloyd wrote:

Hi all,

I have a workbook that when closed all the data in a named range is
sorted by date in ascending order, however when i tried to share the
workbook closing any open copy caused an error "Method of unprotect
class failed" but i only have one sheet in the workbook locked and its
not the sheet that is being sorted, i removed protection from the sheet
and still get the same error, Any ideas?

Simon.

--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=394485


--

Dave Peterson


All times are GMT +1. The time now is 02:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com