Results 1 to 20 of 20

Filter, copy specific columns, and paste to another sheet.

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-29-2008
    Location
    New York
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    145

    Filter, copy specific columns, and paste to another sheet.

    Good morning,
    Yeah it is 1:33 am where I am.
    I'd like to filter a column and paste only 2 columns to another sheet in the first available row.
    I found a code that was posted by Tom Ogilvy and made a few adjustments:
    Sub Test1()
    Set rng = Sheets("Sheet1").AutoFilter.Range
    If rng.Columns(1).SpecialCells(xlVisible).Count > 1 Then
    rng.Offset(1, 0).Resize(rng.Rows.Count - 1).Copy _
    Destination:=Sheets("Sheet2").Range("A2")
    Else
    MsgBox "No visible data"
    End If
    End Sub
    I can't seem to adjust it to copy 2 columns.
    I've attached a file.
    Can anyone help?
    Regards,
    Xrull
    Attached Files Attached Files
    Last edited by Xrull; 09-29-2009 at 06:34 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