Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Protection killed by sort button

Hi, I am working in Excel 2000.

I have a spreadsheet with one worksheet protected on open with
userinterfaceonly set to true to allow users to use the autofilters.

Users also need to use the sort function, so I have created a button
which simply calls the excel sort dialogue box. But when ok is pressed
on the dialogue box the protection on the worksheet has been removed.

Can anyone explain why this is happening, and suggest how to resolve
the issue, as we need the protection in place to prevent accidental
loss of data.

Thanks

Martin.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Protection killed by sort button

Hi TykeInBurton,

I am able to replicate your experience in xl2000.

In your button code try something like:

Application.Dialogs(xlDialogSort).Show
ActiveSheet.Protect UserInterfaceOnly:=True, _
Password:="ABC"

---
Regards,
Norman



"tykeinburton" wrote in message
oups.com...
Hi, I am working in Excel 2000.

I have a spreadsheet with one worksheet protected on open with
userinterfaceonly set to true to allow users to use the autofilters.

Users also need to use the sort function, so I have created a button
which simply calls the excel sort dialogue box. But when ok is pressed
on the dialogue box the protection on the worksheet has been removed.

Can anyone explain why this is happening, and suggest how to resolve
the issue, as we need the protection in place to prevent accidental
loss of data.

Thanks

Martin.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Protection killed by sort button

Thanks for that Norman, it works a treat

rgds

Martin

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to keep custom menu from being killed until all wkbk copys clo Hapless Excel Discussion (Misc queries) 5 September 5th 08 05:32 PM
Sort during protection Edward Excel Discussion (Misc queries) 0 August 20th 08 11:50 PM
EXCEL.EXE is not killed Mircea Pleteriu Excel Programming 2 March 9th 05 10:25 AM
Excel Instance is not killed from clasic asp RameshMarimuthu Excel Programming 2 January 17th 05 10:19 PM
I've killed the copy process Ken McLennan[_3_] Excel Programming 4 November 6th 04 12:10 PM


All times are GMT +1. The time now is 05:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"