+ Reply to Thread
Results 1 to 3 of 3

Adding additional selection criteria to existing Macro

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    Westcliff
    MS-Off Ver
    Excel 2007
    Posts
    14

    Adding additional selection criteria to existing Macro

    Good Morning,

    The attached macro has been very kindly modified by a forum representative to copy rows from the "Master sheet" to "Sheet2" when any cell in "Column B" of the "Master Sheet" is "like" a variable placed in cell G2 of the "Master Sheet" by the user. This Macro does the job extremely well but I would very much appreciate help in adding just one more selection criteria to the existing. I have made several attempts at adding the "and" function to the routine but to no avail. My knowledge of Macros can be written on a postage stamp.

    Column "A" of the "Master Sheet" has a six digit numeric sequence starting at 10773 and currently ending at 20186 but this will increase as rows are added. I would like to also include column "A" within the existing selection criteria to only copy rows to "sheet2" if the cells within column "A" are between two values placed in say J2 and K2 of the master sheet. e.g. 10805 and 10926.

    Hope I have explained this correctly.

    Your help will be most appreciated

    Take care


    Trevor


    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    07-04-2012
    Location
    Westcliff
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Adding additional selection criteria to existing Macro

    Good afternoon, my request for help didn't get a response but I have managed to find a solution by reading up on the subject.

    Many thanks

    Trevor

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Adding additional selection criteria to existing Macro

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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] Additional Criteria VBA/Macro search
    By zhb12810 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2012, 01:38 PM
  2. Adding additional criteria to MATCH
    By erumhyder in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-26-2011, 09:59 AM
  3. additional option to an existing macro
    By Dean England in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2007, 09:46 AM
  4. sumproduct additional information for adding another criteria
    By Darlo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2007, 11:30 AM
  5. Excel Combobox with additional selection criteria
    By sven_dau in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-19-2006, 08:26 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