+ Reply to Thread
Results 1 to 3 of 3

To select rows based on certain Criteria

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2011
    Posts
    2

    To select rows based on certain Criteria

    Hello All,

    I am new to Excel Programming. Here is my Question.

    I want to select rows based on certain cell value. Suppose if I have a coloumn "Company Name" . If any cell in that coloumn has company name Accenture it has to be selected. In this way I have some 532 company names. I have written a piece of code to select for one company and it worked.
    I am not sure how to write code for 532 companies.

    Here is my code:
    Please Login or Register  to view this content.
    Please help me.

    Regards,
    Myth
    Last edited by Leith Ross; 07-30-2013 at 01:40 AM. Reason: Added Code Tags

  2. #2
    Registered User
    Join Date
    07-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2011
    Posts
    2

    Re: To select rows based on certain Criteria

    My code did not work.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: To select rows based on certain Criteria

    Try using the AutoFilter feature. Do a web search for something like Excel AutoFilter tutorial and you will find several useful guides. This could be recorded as a macro if needed.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. select all the rows based on my criteria and should be copied to other workbook ..
    By venkatkumar07 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2012, 09:52 AM
  2. Select Array Based on Criteria
    By excelsf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2010, 06:04 PM
  3. Select Based on 2 search criteria
    By Tony Itwaru in forum Excel General
    Replies: 16
    Last Post: 05-20-2009, 05:09 PM
  4. Select cell formula based on criteria
    By roseberryv@orvis.com in forum Excel General
    Replies: 1
    Last Post: 06-15-2006, 07:10 PM
  5. [SOLVED] Select rows based on criteria
    By sotiris_s in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-14-2005, 08:40 AM

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