+ Reply to Thread
Results 1 to 10 of 10

Highlight and popup message Between employee dates are overlap

  1. #1
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Lightbulb Highlight and popup message Between employee dates are overlap

    Hi,

    I need the vba code for leave planning can u help me out to solve .
    Highlight and popup message to show the overlap dates by each months between two or three employees by selecting check box in column “ AR” search from whole year (January to December ) calendar.
    Once overlap days are there between employees then msgbox should appear like
    ” overlap between those employees
    Employee01 from [ date] to [date]
    Employee02 from [ date] to [date]
    Employee04 from [ date] to [date]” vbok and cancel button
    And also highlight those days in red color in “yearly planner sheet” in calendar else msgbox ” there is no overlap between those employee “ with vbok and cancel button.

    i attached the sample file pls check it.
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Highlight and popup message Between employee dates are overlap

    In simple way, using conditional formatting also possible. plz ref attach file.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Re: Highlight and popup message Between employee dates are overlap

    Hi AVk,
    Thanks for your reply but i need to select by choose to compare the overlap between what i choose the employees in column "AR" not for all employee to compare to highlights in red colur. if i select in check box i can choose either employee01 & employee04 or employee01 & employee02 or employee01 & employee03 & employee04 that time to check overlap between what i selecting the employee in column "AR". but highlighting in column in red colur is nice. what i need is still didnt got, so i think vba code can possible for this changes to get....

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Highlight and popup message Between employee dates are overlap

    Then range applies to : "AR8" to "AR11" in CF

  5. #5
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Re: Highlight and popup message Between employee dates are overlap

    i tried by selecting the check box but what i need it not getting results i tried in three choice to compare the overlap dates but it not working between those three employees and if says cancel i don't want to show back in red color it should turns normal. the overlap dates i need only an information to highlight after that i want it back in normal.
    Last edited by Anisusa; 02-10-2017 at 07:39 AM.

  6. #6
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Re: Highlight and popup message Between employee dates are overlap

    no one to solve this ? pls can anyone try to solve......

  7. #7
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: Highlight and popup message Between employee dates are overlap

    Hi,

    Wasn't able to create something in VBA cause lack of time but created a formula which determines the overlapping rows as shown in column based on the selection checkboxes you created.

    Hope this helps.
    Attached Files Attached Files
    HtH,

    Joris

    --------------------------------------------------------------------------------
    If you found my answer helpful, please hit the Like or Thank button.

    Please follow the forum Rules and Guidelines and use Code tags around your VBA code.

    Remember: test VBA code always on a copy of your file because usually you can't use undo

  8. #8
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Re: Highlight and popup message Between employee dates are overlap

    Hi Joris,

    Thanks for your effort after long time waiting to get response your work is nice based on rows will show but if u don't mind other user will understanding this rows based little difficult to know is there any better to show overlap to understand all multiple users.

    may be highlight the color (Red) giving of overlap dates in column of name & from and to dates and after uncheck the checkbox red color should disappear. if its possible pls try for me ...

    sorry for trouble.... joris

  9. #9
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154
    Quote Originally Posted by joris moerings View Post
    Hi,

    Wasn't able to create something in VBA cause lack of time but created a formula which determines the overlapping rows as shown in column based on the selection checkboxes you created.

    Hope this helps.
    Hi joris,
    Sorry for trouble you... Pls can u try to do something atleast I need a color in column F and uncheck to clear the color in cocolumn F pls joris

  10. #10
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Re: Highlight and popup message Between employee dates are overlap

    Thank you friends all your efforts finally its solved ...

    http://www.excelfox.com/forum/showth...-Overlap-dates
    Last edited by Anisusa; 03-31-2017 at 08:41 PM.

+ 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. Sum of Value overlap dates criteria
    By qfreud in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-17-2016, 09:38 AM
  2. Popup message.
    By top-dad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-16-2015, 08:51 PM
  3. highlight 2 cells with times of day that overlap
    By Kshari in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-19-2014, 11:13 PM
  4. popup alert message during the worksheet open and continuous work on the sheet popup jump
    By shailkam2001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2014, 10:24 AM
  5. Popup message
    By buckshot in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-07-2010, 05:26 PM
  6. Popup message box
    By Socrates in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-26-2009, 12:14 AM
  7. Message Box Popup with Yes or No
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2008, 03:19 PM

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