Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Protected Sheet Problem in Excel 2000

I have built an automated workbook application that contains the
following code:

Private Sub Workbook_Open()

On Error Resume Next

ThisWorkbook.Worksheets("Planning").Protect _
Password:="atom", UserInterfaceOnly:=True

ThisWorkbook.Worksheets("Planning").EnableSelectio n = xlUnlockedCells

ThisWorkbook.Worksheets("Sales").Protect _
Password:="atom", UserInterfaceOnly:=True

ThisWorkbook.Worksheets("Sales").EnableSelection = xlUnlockedCells

Application.ActiveWorkbook.Protect Password:="atom", Structu=True

Sheets("Sales").Range("h3").Select

End Sub

It works fine for me, but another user can not see the cell border of
his selection highlighted on the "Planning" sheet. Does anyone know
why this would be and how to correct?

Thanks.

John Scott

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Protected Sheet Problem in Excel 2000

I have seen that behavior and activating the sheet first before applying the
protection fixed it for me.

Private Sub Workbook_Open()

On Error Resume Next
Application.ScreenUpdating = False
With ThisWorkbook.Worksheets("Planning")
.Activate
.Protect _
Password:="atom", UserInterfaceOnly:=True
.EnableSelection = xlUnlockedCells
End With
With ThisWorkbook.Worksheets("Sales")
.Activate
.Protect _
Password:="atom", UserInterfaceOnly:=True
.EnableSelection = xlUnlockedCells
End With
Application.ThisWorkbook.Protect Password:="atom", Structu=True

ThisWorkbook.Sheets("Sales").Range("h3").Select
Application.ScreenUpdating = True
End Sub

--
Regards,
Tom Ogilvy

"JG Scott" wrote in message
ups.com...
I have built an automated workbook application that contains the
following code:

Private Sub Workbook_Open()

On Error Resume Next

ThisWorkbook.Worksheets("Planning").Protect _
Password:="atom", UserInterfaceOnly:=True

ThisWorkbook.Worksheets("Planning").EnableSelectio n = xlUnlockedCells

ThisWorkbook.Worksheets("Sales").Protect _
Password:="atom", UserInterfaceOnly:=True

ThisWorkbook.Worksheets("Sales").EnableSelection = xlUnlockedCells

Application.ActiveWorkbook.Protect Password:="atom", Structu=True

Sheets("Sales").Range("h3").Select

End Sub

It works fine for me, but another user can not see the cell border of
his selection highlighted on the "Planning" sheet. Does anyone know
why this would be and how to correct?

Thanks.

John Scott



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Protected Sheet Problem in Excel 2000

Thanks, Tom.

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
Combobox problem in protected sheet Oguz Excel Discussion (Misc queries) 0 March 27th 08 11:26 AM
Problem doing Query to Access with Excel sheet protected Harry[_8_] Excel Programming 3 February 26th 05 03:46 PM
Enable filter to work in a protected sheet from Excel 2003 to 2000 Metallo[_3_] Excel Programming 2 November 26th 04 03:58 PM
Query Into Protected Sheet - Excel 2000 on WinXP Home (SR2) FredC[_2_] Excel Programming 0 September 11th 04 06:12 PM
Solver via VBA on protected sheet problem josvr Excel Programming 4 October 2nd 03 02:20 AM


All times are GMT +1. The time now is 11:57 AM.

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"