+ Reply to Thread
Results 1 to 2 of 2

Multiple tests executed by macro on one xls input

  1. #1
    Registered User
    Join Date
    12-07-2017
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    1

    Multiple tests executed by macro on one xls input

    Dears,

    this is my first post here, I am looking for a piece of advice. I have an input file produced by the IT. It contains a number of columns. On this file I need to perform a number of different checks - most of the time it's done by applying different sets of filters. Once I applied my filters for check no 1 (so run macro nbr 1) I want to flag (e.g. put 1 as a flag) all hits in a new column (Column1). Ideally give it a name corresponding with that check. Then I would like to reset all the filters and perform check no 2 and flag all the hits in Column2. I would like to repeat that loop for all the checks I have.

    In the end I will have a big overview of rows that were hit by each of the check.

    That would be all. I know nothing about excel macros, I've just learnt how to run a macro that allows to filter on many attributes but that's all what I know. I assume that the complexity I am asking about comes from (1) the fact that I would like to maintain only one file and (2) that it will require running macros in the loop.

    Any advice will be appreciated.

    I started learning how to use autofilters based on this tutorial https://www.exceltip.com/vba/vba-cod...lter-data.html.

    I can run a very simple one but how I can flag rows hit by check nbr 1? and then move to another check?

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

    Re: Multiple tests executed by macro on one xls input

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

+ 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. Replies: 4
    Last Post: 10-19-2016, 02:45 PM
  2. Macro executed within one tab
    By toplisek in forum Excel General
    Replies: 2
    Last Post: 07-03-2015, 04:49 AM
  3. IF AND & multiple logical tests
    By jdbock in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-09-2015, 10:09 AM
  4. [SOLVED] User Form to input values only after command button executed and refresh workbook
    By concatch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2013, 09:41 AM
  5. Multiple IF logical tests
    By plauterborn in forum Excel General
    Replies: 3
    Last Post: 02-14-2012, 04:39 PM
  6. Multiple tests for a condition
    By Matilda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-06-2006, 07:35 AM
  7. [SOLVED] Average a group of tests for grade, some tests not taken by all.
    By Scafidel in forum Excel General
    Replies: 4
    Last Post: 08-18-2005, 11:05 PM

Tags for this Thread

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