+ Reply to Thread
Results 1 to 2 of 2

Macro for filtering table via textbox not working with numbers

  1. #1
    Registered User
    Join Date
    04-12-2013
    Location
    Caracas
    MS-Off Ver
    Excel 2007
    Posts
    8

    Macro for filtering table via textbox not working with numbers

    Hi, everyone.

    I'm trying to write a macro that filters a table via textbox (criteria), specifying the column to filter through a combobox. I managed to get it to work with every format (date, text, etc.) except with numbers. I'm attaching the file so you can take a look at the code.

    I'm also kind of puzzled about this: If i have a column containing numbers but the cells have text format and I reformat those cells to numbers (using points to seprate thousands [I'm from Venezuela, we use dots, not commas]) the results aren't visible unless I modify each cell individually. How can I avoid this?

    Lastly, I'm using a macro that I found online that sets invisible shapes on each cell of the header and asigns another macro to these shapes to sort by ascending or descending order in the column over which the shape is put. I made some changes to the macro that actually sorts the values and it works fine, but sometimes I have to resize the shape (on the left side) so that it's further inside the cell or else I'll get an error.

    Any ideas on how to make this work better?

    Thanks in advanced

    EDIT: It doesn't work with dates either!
    EDIT2: I tried copying the table and the codes to a new workbook and now magically it works with numbers, but still not working for dates. Also I'm still having to resize the invisible shape (only in header of the first column ('C')) and the changes in format still aren't visible unless I modify each cell. I think this last issue has something to do with 'SortOneTime' macro or the 'Ordenar' macro because it happens after I run them.

    Tabla General (Nueva) (Combobox).xlsm
    Last edited by adrianrff; 01-31-2014 at 03:15 PM.

  2. #2
    Registered User
    Join Date
    04-12-2013
    Location
    Caracas
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Macro for filtering table via textbox not working with numbers

    Bump! Bump! Bump!

+ 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. [SOLVED] vba macro code for filtering from the given numbers
    By Dharani Suresh in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-03-2013, 07:19 AM
  2. Macro for filtering table and pivot
    By Polglish in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-02-2013, 03:05 AM
  3. [SOLVED] Sorting on textbox input - Problems when inserting a new row (macro stops working)
    By adrianrff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2013, 05:03 PM
  4. Search filtering macro stopped working
    By James_B in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2010, 11:04 AM
  5. Macro for Filtering in a Pivot Table
    By Herve_Rob in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-16-2007, 12:29 PM

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