+ Reply to Thread
Results 1 to 5 of 5

Autofilter based on a cell value

  1. #1
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    155

    Autofilter based on a cell value

    I have an macro but I need to modify it to the autofilter value will be the content of a cell in an other worksheet. I upload a little sample also.
    The autolfilter value could be the B2 cell in "Loading prg" worksheet.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by ccsmith; 02-01-2011 at 09:45 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Autofilter based on a cell value

    Your example indicates the criteria was in C1 so this should work:

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: Autofilter based on a cell value

    Thank you for your prompt reply. It is working perfectly.
    Can you also give me an solution if the value is greater than cell C1 on the other worksheet?
    Example: autofilter value >6 (every value which is greater than it)

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Autofilter based on a cell value

    Just this:

    Please Login or Register  to view this content.

    Dom

  5. #5
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: Autofilter based on a cell value

    Thank you. Great work.

+ 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