+ Reply to Thread
Results 1 to 5 of 5

worksheet protection excel 2000 vrs 2003

Hybrid View

Guest worksheet protection excel... 06-03-2005, 07:05 PM
Guest Re: worksheet protection... 06-03-2005, 07:05 PM
Guest Re: worksheet protection... 06-06-2005, 01:05 PM
Guest Re: worksheet protection... 06-05-2005, 09:40 PM
Guest Re: worksheet protection... 06-06-2005, 01:05 PM
  1. #1
    wtpcomplab
    Guest

    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. #2
    Alan
    Guest

    Re: 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" <wtpcomplab@discussions.microsoft.com> wrote in message
    news:313BF32E-E526-45C6-B535-045B4B2876C8@microsoft.com...
    >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. #3
    wtpcomplab
    Guest

    Re: 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" <wtpcomplab@discussions.microsoft.com> wrote in message
    > news:313BF32E-E526-45C6-B535-045B4B2876C8@microsoft.com...
    > >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. #4
    Harald Staff
    Guest

    Re: 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" <wtpcomplab@discussions.microsoft.com> skrev i melding
    news:313BF32E-E526-45C6-B535-045B4B2876C8@microsoft.com...
    > 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. #5
    wtpcomplab
    Guest

    Re: 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" <wtpcomplab@discussions.microsoft.com> skrev i melding
    > news:313BF32E-E526-45C6-B535-045B4B2876C8@microsoft.com...
    > > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1