Hello,
I tried to look for this issue in other threads on this forum, but could not find this issue.
I have an Excel spreadsheet in 2003 that has a single column with a Vlookup that I need to protect. When I do this, this causes a problem with the macro I have on the sheet. It does not work and a box comes up with an option to debug. I need to protect this formula, but need the macro to work as well.
This is the macro I have on the sheet:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'Change this address to the area where you want the click to produce a checkmark
Const sCheckAddress As String = "ab3:ab1500"
Dim rngIntersect As Range
On Error Resume Next
Set rngIntersect = Intersect(Me.Range(sCheckAddress), Target)
On Error GoTo 0
If Not (rngIntersect Is Nothing) Then
Target.Font.Name = "Marlett"
Target.Value = "a"
End If
End Sub
Thanks for any help you can give me!!
I tried to look for this issue in other threads on this forum, but could not find this issue.
I have an Excel spreadsheet in 2003 that has a single column with a Vlookup that I need to protect. When I do this, this causes a problem with the macro I have on the sheet. It does not work and a box comes up with an option to debug. I need to protect this formula, but need the macro to work as well.
This is the macro I have on the sheet:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'Change this address to the area where you want the click to produce a checkmark
Const sCheckAddress As String = "ab3:ab1500"
Dim rngIntersect As Range
On Error Resume Next
Set rngIntersect = Intersect(Me.Range(sCheckAddress), Target)
On Error GoTo 0
If Not (rngIntersect Is Nothing) Then
Target.Font.Name = "Marlett"
Target.Value = "a"
End If
End Sub
Thanks for any help you can give me!!