Age: 175 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Wed Jul 16, 2008 3:04 pm Post subject:
Это можно сделать или программно или через меню (см. картинки), только присутствует очень большой недостаток, для сортируемых ячеек нужно снять свойство Locked, то есть разрешить для них редактирование.
Visual Basic macro:
Code:
Sub ProtectionOptions()
ActiveSheet.Unprotect
' Unlock cells A1 through B5.
Range("A1:B5").Locked = False
' Allow sorting to be performed on the protected worksheet.
If ActiveSheet.Protection.AllowSorting = False Then
ActiveSheet.Protect AllowSorting:=True
End If
MsgBox "For cells A1 through B5, sorting can be performed on the protected worksheet."
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.