all in column DAre the hyperlinks in a specific part of the sheet?
If so, can you tell us what that is?
I am thinking that you may be able to use VBA in order to immediately undo any deletions to specific ranges on your sheet.
Private Sub Worksheet_Change(ByVal Target As Range)
' Exit if multiple cells updated at once
If Target.Count > 1 Then Exit Sub
' Exit if update not to column D
If Target.Column <> 4 Then Exit Sub
' Exit if if cell not cleared out
If Target.Value <> "" Then Exit Sub
' Undo deletion
Application.EnableEvents = False
Application.Undo
Application.EnableEvents = True
End Sub
Works great thanksSomething like this would prevent a user from deleting single cells in column D.
(Right-click on the sheet tab name at the bottom of the screen, select "View Code", and paste this code in the VB Editor window that pops up):
VBA Code:Private Sub Worksheet_Change(ByVal Target As Range) ' Exit if multiple cells updated at once If Target.Count > 1 Then Exit Sub ' Exit if update not to column D If Target.Column <> 4 Then Exit Sub ' Exit if if cell not cleared out If Target.Value <> "" Then Exit Sub ' Undo deletion Application.EnableEvents = False Application.Undo Application.EnableEvents = True End Sub
I have tried that when I protect sheet I cannot use a hyperlink.You are welcome.
Also note the follow-up post I made, which shows it may not even be necessary.
That is weird, it works just fine for me.I have tried that when I protect sheet I cannot use a hyperlink.