Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a range of cells D1:G16 with formulae in them, I want to ensure that
the user cant select these cells, how can I do this without any sort of Password Protection. I guess its a Private Sub Worksheet_Open() If Target.Range = (D1:G16)... ..... .... .... Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi teresa
Try this event in the sheet module Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Application.Intersect(Range("D1:G16"), Target) Is Nothing Then Range("C1").Select End If End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "teresa" wrote in message ... I have a range of cells D1:G16 with formulae in them, I want to ensure that the user cant select these cells, how can I do this without any sort of Password Protection. I guess its a Private Sub Worksheet_Open() If Target.Range = (D1:G16)... .... ... ... Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
works fine - thanks Ron
"Ron de Bruin" wrote: Hi teresa Try this event in the sheet module Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Application.Intersect(Range("D1:G16"), Target) Is Nothing Then Range("C1").Select End If End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "teresa" wrote in message ... I have a range of cells D1:G16 with formulae in them, I want to ensure that the user cant select these cells, how can I do this without any sort of Password Protection. I guess its a Private Sub Worksheet_Open() If Target.Range = (D1:G16)... .... ... ... Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Data Protection Best Practice: AKA: Real Sheet Protection | Excel Discussion (Misc queries) | |||
Excel Data Protection- AKA: Sheet/Macro Password Protection | Setting up and Configuration of Excel | |||
Password Protection - paste to unprotected cell locks the cell | Excel Discussion (Misc queries) | |||
Cell Protection vs. Worksheet Protection | Excel Discussion (Misc queries) | |||
cell protection | Excel Programming |