+ Reply to Thread
Results 1 to 4 of 4

Problem with VBA Code error

  1. #1
    Registered User
    Join Date
    03-18-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    68

    Problem with VBA Code error

    Hi,

    Below is the code which i am using it to advance filter with data validation criteria with necessary naming range, its looks good but i am getting the error like "Error 1004 Method 'Range' of object '_Worksheet' failed", can you please look at what the issue is


    If Not rngCrit Is Nothing Then
    Sheet2.Range("Data").AdvancedFilter _
    Action:=xlFilterCopy, _
    CriteriaRange:=rngCrit, _
    CopyToRange:=Range("ExtractData"), Unique:=False
    End If

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Problem with VBA Code error

    Make sure to use Code Tags ...

  3. #3
    Registered User
    Join Date
    03-18-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    68

    Re: Problem with VBA Code error

    I am pretty new to this forum, hence all these confusions, will take care the actions points from next thread

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,063

    Re: Problem with VBA Code error

    You'll need to go back and edit your original post to add code tags before we can answer you...
    Everyone who confuses correlation and causation ends up dead.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1