Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-09-2018, 04:57 AM
LearnerExcel LearnerExcel is offline How to Auto Filter data based on Cell E1 text as Criteria? Windows 7 32bit How to Auto Filter data based on Cell E1 text as Criteria? Office 2013
Advanced Beginner
How to Auto Filter data based on Cell E1 text as Criteria?
 
Join Date: Nov 2016
Posts: 81
LearnerExcel will become famous soon enoughLearnerExcel will become famous soon enough
Default How to Auto Filter data based on Cell E1 text as Criteria?

How to Auto Filter data based on Cell E1 text as Criteria?

Sub FilterData()


With Sheet1
.AutoFilterMode = False
.Range("B8:O8").AutoFilter
.Range("B8:O8").AutoFilter Field:=6, Criteria1:="Books"
End With
End Sub

This code is retrieving data that contain the text "Books" in Column 6.
Reply With Quote
  #2  
Old 03-10-2018, 01:36 PM
NoSparks NoSparks is offline How to Auto Filter data based on Cell E1 text as Criteria? Windows 7 64bit How to Auto Filter data based on Cell E1 text as Criteria? Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Use variables instead of hard coding.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Auto Filter data based on Cell E1 text as Criteria? How to modify code for Auto filter based on two criteria ... LearnerExcel Excel Programming 13 02-14-2018 08:20 PM
Auto enter data based on formula in another cell? RonLEngle Excel 5 06-30-2017 11:44 AM
How to Auto Filter data based on Cell E1 text as Criteria? Filter Mail Merge based on a list of filter criteria AusSteelMan Mail Merge 2 05-09-2016 03:35 PM
How to Auto Filter data based on Cell E1 text as Criteria? Auto Filter base on a value in another cell in same worksheet z941714 Excel 1 08-14-2015 07:41 AM
cell text to auto populate if criteria matches Jackie Excel 2 02-06-2015 07:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft