Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default worksheet protection excel 2000 vrs 2003

I have a worksheet with the code below running on excel 2003.
The worksheet is protected with "select unlocked cells" and "formatt cells"
enabled.
When moved to excel 2000 the option for "formatt cells" fails.
Unsure how to correct this in excel 2000.
Any help would be a boon.

Dan


'----------------------------------------------------------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'----------------------------------------------------------------
Cells.FormatConditions.Delete
With Target
..FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
..FormatConditions(1).Interior.ColorIndex = 6
End With

End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 492
Default worksheet protection excel 2000 vrs 2003

Not completely sure, but I think that the option to select locked and
unlocked cells was not available on XL2000 as were 'allow AutoFilter' etc
and 'allow formatting cells'.
If so then that is the reason the code fails. I'm sure someone will confirm
or overturn this theory,
Regards,
Alan.
"wtpcomplab" wrote in message
...
I have a worksheet with the code below running on excel 2003.
The worksheet is protected with "select unlocked cells" and "formatt
cells"
enabled.
When moved to excel 2000 the option for "formatt cells" fails.
Unsure how to correct this in excel 2000.
Any help would be a boon.

Dan


'----------------------------------------------------------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'----------------------------------------------------------------
Cells.FormatConditions.Delete
With Target
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
.FormatConditions(1).Interior.ColorIndex = 6
End With

End Sub



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default worksheet protection excel 2000 vrs 2003

Hi Dan

Confirming Alan's post, Excel 2000 can not do that. Unless the user defines
the protection password, your code could unprotect - format - reprotect the
sheet.

You should develop these things in the eraliest version to be used,
otherwise you are coding blindfolded.

HTH. Best wishes Harald

"wtpcomplab" skrev i melding
...
I have a worksheet with the code below running on excel 2003.
The worksheet is protected with "select unlocked cells" and "formatt

cells"
enabled.
When moved to excel 2000 the option for "formatt cells" fails.
Unsure how to correct this in excel 2000.
Any help would be a boon.

Dan


'----------------------------------------------------------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'----------------------------------------------------------------
Cells.FormatConditions.Delete
With Target
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
.FormatConditions(1).Interior.ColorIndex = 6
End With

End Sub



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default worksheet protection excel 2000 vrs 2003

Thanks Alan
A guy can Hope.
But it is "Gates" I did not expect it to be easy.

Dan

"Alan" wrote:

Not completely sure, but I think that the option to select locked and
unlocked cells was not available on XL2000 as were 'allow AutoFilter' etc
and 'allow formatting cells'.
If so then that is the reason the code fails. I'm sure someone will confirm
or overturn this theory,
Regards,
Alan.
"wtpcomplab" wrote in message
...
I have a worksheet with the code below running on excel 2003.
The worksheet is protected with "select unlocked cells" and "formatt
cells"
enabled.
When moved to excel 2000 the option for "formatt cells" fails.
Unsure how to correct this in excel 2000.
Any help would be a boon.

Dan


'----------------------------------------------------------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'----------------------------------------------------------------
Cells.FormatConditions.Delete
With Target
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
.FormatConditions(1).Interior.ColorIndex = 6
End With

End Sub




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default worksheet protection excel 2000 vrs 2003

When I was given this project I was told this was the oldest version I needed
to code for.
But Hey.
Thanks anyway.

Dan

"Harald Staff" wrote:

Hi Dan

Confirming Alan's post, Excel 2000 can not do that. Unless the user defines
the protection password, your code could unprotect - format - reprotect the
sheet.

You should develop these things in the eraliest version to be used,
otherwise you are coding blindfolded.

HTH. Best wishes Harald

"wtpcomplab" skrev i melding
...
I have a worksheet with the code below running on excel 2003.
The worksheet is protected with "select unlocked cells" and "formatt

cells"
enabled.
When moved to excel 2000 the option for "formatt cells" fails.
Unsure how to correct this in excel 2000.
Any help would be a boon.

Dan


'----------------------------------------------------------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'----------------------------------------------------------------
Cells.FormatConditions.Delete
With Target
.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
.FormatConditions(1).Interior.ColorIndex = 6
End With

End Sub




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
worksheet in excel 2000 different than 2003 StressMonkey Excel Discussion (Misc queries) 2 October 4th 06 02:59 PM
Cell Protection over Excel 2000 and 2003 Achez Excel Discussion (Misc queries) 3 June 6th 06 07:50 PM
2003 Shared Worksheet Protection Settings Failing For My 2000 User JWarnick-SHH Excel Worksheet Functions 0 March 17th 06 06:59 PM
Using AutoFilter with worksheet protection in 2000 vs. 2003 gncook Excel Discussion (Misc queries) 3 July 25th 05 08:02 PM
Excel 2000 AutoFilter and Worksheet protection Phillo Excel Programming 2 October 11th 04 02:54 PM


All times are GMT +1. The time now is 08:33 PM.

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

About Us

"It's about Microsoft Excel"