Results 1 to 1 of 1

filter copy and paste to different workbook

Threaded View

  1. #1
    Registered User
    Join Date
    05-26-2010
    Location
    Kent
    MS-Off Ver
    Excel 2003
    Posts
    53

    filter copy and paste to different workbook

    Hi

    I am trying to filter copy and paste. When I record the macro it works fine, but when I try to run it does not add the filter
    This is my code



     Windows("Workbook1.xls").Activate
        Rows("1:1").Select
       
        Selection.AutoFilter Field:=10, Criteria1:="<>0", Operator:=xlAnd
        Columns("B:K").Select
        Selection.Copy
        Windows("Workbook2.xls").Activate
        ActiveSheet.Paste

    Any help appreciated


    Solved
    needed Range("A1").Select not Rows("1:1").Select
    Last edited by Karen311261; 05-23-2011 at 04:12 AM.

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