Posts by MickG

    Re: Highlight date clashes in Annual leave between staff


    The problem is the codes does not like to find only one value in an Array.
    I have not found a complete solution, but by not allowing the code to run until there are at least two matching dates , the code (as below) will run.
    I hope that works for you at the moment.

    Re: Search 4 columns for value, list row for all instances found


    Try this:-
    Results sheet "Schedules", Start "A1"

    Re: Change code, copy the ListBox selection in sheet range A: I


    Try:-

    Re: AutoFill data from list


    With Your data in "Sheet1" then try this code for Results in "Sheet2", starting "A1".


    Regards Mick

    Re: ComboBox1 filling another ComboBox2 with correct information (like a filter!)


    Try this in your "Ftable" code module.

    Re: Array not working


    Seems some confusion with sheet name , but try:-


    Re: Moving cell value from incorrect row from data opened from html


    Try this:-
    NB:- This code will re-arrange your data.

    Re: Multiple rows to columns


    Based on Data in sheet1 , try this for results in sheet2

    Re: Highlight date clashes in Annual leave between staff


    You're welcome
    The Irony of the code is that its written to find a number of conflicts, and highlight them in different colours, But as you now have an Automated version it should only ever be necessary to check if the active cell date is a duplicate, which can be corrected immediately, and the finding of duplicate becomes superfluous.
    Never mind it was an interesting Thread to try and resolve, and has provided me with some background code.
    Regrds Mick

    Re: Highlight date clashes in Annual leave between staff


    Try this "Change _Event"
    To Load code:-
    Right click sheet Tab.
    From shortcut Menu, select "View Code"
    VbWindow appears , Paste code into this window.
    Close Vbwindow.
    Run code By adding dates in appropriate Ranges.

    Re: Highlight date clashes in Annual leave between staff


    Try this:-