• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Turn any cell into an interactive button Help fix one problem - Run time error 1004

Ken Moore

New Member
Hi All

I'm new to this and while using the following I have a Run time error '1004"' show up. Can you please help, the related file is attached.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)

Dim dccolumn As Integer
Dim dcvalue As String

dccolumn = ActiveCell.Column
dcvalue = ActiveCell.Value

If Application.Intersect(ActiveCell, [headers]) Is Nothing Then

If ActiveCell.Value <> "" Then

ActiveSheet.Range("a:f18974").AutoFilter Field:=dccolumn, Criterial:=dcvalue

End If

End If

End Sub
 

Attachments

Back
Top