+ Reply to Thread
Results 1 to 1 of 1

Advanced filter not returning range with numeric format below 7 characters

  1. #1
    Registered User
    Join Date
    08-13-2009
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    20

    Advanced filter not returning range with numeric format below 7 characters

    I wish to extract a selection of fields from one list in sheet1 to a target area in second sheet matching specified criteria. Basically, this is done using Excel Advanced Filter, specifying relevant arguments (looping through the list of criteria values).
    rSourceRng.AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range(sFiltRng), CopyToRange:=WS2.Range(sDestRng), Unique:=True

    Each criteria is a numeric values (following a standard Danish standard numeric format) formatted as text which applies also for the values listed in database.

    The problem is that Filtercopy does not return those database records listed with criteria value below 7 characters (in this case values below 1.000.000).

    Excel itself will gladly return all records matching the extract criteria. (Test by placing the curser in the target range before activating advanced filter). Note also, that the worksheet function =dcounta will return the correct number of records as well in VBA as in Excel.

    Any ideas?

    See code below and attachment.

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Advanced filter by date range, international date format problem
    By Senator685 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2013, 08:16 AM
  2. Replies: 4
    Last Post: 06-11-2012, 08:23 AM
  3. Format some numeric characters in cell as subscript
    By Cutter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2010, 04:33 PM
  4. Format numeric characters as subscript
    By Cutter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2010, 04:13 PM
  5. [SOLVED] advanced filter a range:Advanced Filter function
    By Il Principe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

Tags for this Thread

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