+ Reply to Thread
Results 1 to 3 of 3

VBA autofilter field range

  1. #1
    Registered User
    Join Date
    11-18-2013
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    5

    VBA autofilter field range

    Hi,

    i have a macro that will set a filter based on set columns

    Please Login or Register  to view this content.
    This is working fine for what i need.

    however i've been asked to add to it something do it. but it would mean the field would not be set as it depends on a different cell as to what column to filter.

    so in another tab in have headings with numbers 1 to 39 from J - AV

    in another tab i have the same number ranked to show the top ten, these top 10 will change based on another forumal i have set up.

    i want to be able to run the filter that wil do the above code but also filter that question number (i understand i may need to have 10 different bits of code for each of the top 10)

    hope this make sense.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: VBA autofilter field range

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    11-18-2013
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: VBA autofilter field range

    Hi Davesexcel

    in the attacked workbook the agent data tab is updated from another report.
    I've stripped down the report and removed names etc

    The trends tab will show the top trends out of 39 questions if they are marked red. based on the week and the manager name. all that is working find.

    what I want to show is where it says (3 out of 3 calls) who are the 3. what are the agents names.

    I'm not sure I'm over complicating things using the filter macro.

    in the agent data tab I have a CF set on the agent name to change the text to red if red is any of the questions 1 - 39

    on the trends tab I want to try and put a filter on the question number

    so the top question for manager 1 is Q35. I want to filter that question in agent data. but this will change to a another question for a different manager.

    I hope I've explained it as best as I could

    thanks for the help



    EDIT -

    i've sorted it out by using the following code

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by iktpq; 11-28-2014 at 08:47 AM.

+ 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. Autofilter Field with a variable?
    By kestefon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-01-2013, 01:20 AM
  2. AutoFilter method of Range class failed - Yet autofilter works.
    By Carlsbergen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2009, 05:43 PM
  3. Summing a Field while Using an Autofilter
    By Lost and Looking for Help in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2006, 01:10 PM
  4. Autofilter with date field
    By gabch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2006, 07:55 AM
  5. [SOLVED] Selection.AutoFilter Field:=1
    By MBlake in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-25-2005, 03:05 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