Results 1 to 7 of 7

Getting data from another sheet using dates & description as criteria.

Threaded View

Fotis1991 Getting data from another... 12-27-2012, 06:01 AM
TMS Re: Getting data from another... 12-27-2012, 06:54 AM
Fotis1991 Re: Getting data from another... 12-27-2012, 09:19 AM
Fotis1991 Re: Getting data from another... 12-27-2012, 09:42 AM
TMS Re: Getting data from another... 12-27-2012, 09:52 AM
mike7952 Re: Getting data from another... 12-27-2012, 10:04 AM
Fotis1991 Re: Getting data from another... 12-27-2012, 11:16 AM
  1. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,791

    Re: Getting data from another sheet using dates & description as criteria.

    You ca use a recorded macro for an Advanced Filter. The code here is slightly edited but is based on a recorded macro.

    Option Explicit
    
    Sub Macro1()
    '
    ' Macro1 Macro
    ' Macro recorded 27/12/2012 by TMShucks
    '
    With Sheets("Sheet1").Columns("A:K")
        .AdvancedFilter _
            Action:=xlFilterCopy, _
            CriteriaRange:=Sheets("Sheet2").Range("A1:C2"), _
            CopyToRange:=Sheets("Sheet2").Range("A5:C5"), _
            Unique:=False
    End With
    End Sub

    See the attached example.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


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