+ Reply to Thread
Results 1 to 9 of 9

Filtering data

Hybrid View

  1. #1
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Filtering data

    I don't see anything obviously wrong with your code, but on the CopyToRange argument, I would probably change it to just the first cell of the region.

    CopyToRange:=Range("A81")
    I ran the code and it seems to run fine.

    Look at the attached workbook and please tell me what is different about your setup? Maybe this will help us see what's going wrong.
    Attached Files Attached Files
    HTH
    Regards, Jeff

  2. #2
    Registered User
    Join Date
    08-10-2010
    Location
    Edingthorpe, England
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Filtering data

    Thanks for your response. Sorry to be so long replying.

    The only difference I can see is that my data is in columns D and H whereas you have a solid block of data.

    Incidently, I noted your comment on CopyTo and changed my code to reflect your tip. It didn't solve the problem but the results are quite interesting and I've been playing around with it.
    The criteria is in column C.
    CopyTo A1 only retrieved data from the first column.
    CopyTo A1:D1 retrieved data from columns A to D.
    CopyTo A1:H1 retrieved data from columns A to D and pasted accordingly. It also repeated the data from column D in column H.

    Interesting, but I just can't get the data I want to extract from column H.

    Thanks

+ 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