+ Reply to Thread
Results 1 to 2 of 2

currentregio

  1. #1
    Registered User
    Join Date
    10-22-2015
    Location
    greece
    MS-Off Ver
    2015
    Posts
    1

    currentregio

    Sub Macro2()


    Sheets("Sheet1").Range("A2:E235").AdvancedFilter Action:=xlFilterCopy, _
    CriteriaRange:=Range("Sheet1!Criteria"), _
    CopyToRange:=Sheets("Sheet2").Range("G2:K2"), _
    Unique:=False
    End Sub

    i want to change the Range and use currentregion...

    Sub Macro2()


    Sheets("Sheet1").Range("A2").CurrentRegion.AdvancedFilter Action:=xlFilterCopy, _
    CriteriaRange:=Range("Sheet1!Criteria"), _
    CopyToRange:=Sheets("Sheet2").Range("G2:K2"), _
    Unique:=False
    End Sub
    but it gives me an error...whyyy??

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: currentregio

    Welcome to the board, g.

    Please take a few minutes to read the forum rules, and then edit your post to add CODE tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

+ 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