View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Jim Cone Jim Cone is offline
external usenet poster
 
Posts: 3,290
Default Protecting workbook with hyperlinks

Matt,

Interesting, a couple of ideas...
1. Leave the locked cells as selectable when protecting the sheet.
The user still cannot change the cells.
2. Same as above but...
leave a blank cell unlocked ("A1") ?
add the following code to the sheet module...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Application.Intersect(Target, Me.Range("A2:A30")) Is Nothing Then
Me.Range("A1").Select
End If
End Sub
'--------------------------------

Regards,
Jim Cone
San Francisco, USA


"Matt Jensen" wrote in message ...
Howdy
A range 1 column by about 30 rows of my workbook contains cells with text
and hyperlinks to the internet for the text. For this example's sake, I want
to entirely protect the worksheet but have users able to click the
hyperlinks.
So I unlock the range in question, protect the worksheet and check the
checkbox for 'select unlocked cells', which works fine and you can click the
hyperlinks and IE will open and browse to correct page, but if you click
anywhere else in the workbook (i.e. on locked cells) the last selected
hyperlink is then opened!!!!
How can I prevent this happening?
Thanks
Matt