+ Reply to Thread
Results 1 to 16 of 16

Holidays on Month Sheets

  1. #1
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Holidays on Month Sheets

    Hello,

    Is it possible to fill in the monthly calendar sheets from the Holidays! sheet?

    Thank you very much for your help,
    XJ

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

    Re: Holidays on Month Sheets

    Checkit out,
    Please Login or Register  to view this content.
    Last edited by davesexcel; 11-18-2018 at 11:16 AM.

  3. #3
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Holidays on Month Sheets

    Thank you Dave it works but can I request that the data starts at the line below the days?

    Starting at rows 4,10,16,22,28,and 34 please.

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

    Re: Holidays on Month Sheets

    Change to
    Please Login or Register  to view this content.

  5. #5
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Holidays on Month Sheets

    I don't understand where to make the change sorry.

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

    Re: Holidays on Month Sheets

    Right now I had it as
    g.Offset(,1).Value=

    I just wanted you to change it to
    g.Offset(1).Value=

    The original code has been edited now

  7. #7
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Holidays on Month Sheets

    Hi, in the 'Holidays' sheet, name the range 'A3: A20' as 'holidays_'.
    In the 'January' sheet, select the range 'A3: N33' -> conditional formatting -> new rule = COUNTIF (holidays_; A3) -> fill color.
    Repeat for the remaining months.
    Regards.

  8. #8
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Holidays on Month Sheets

    Dave with the updated code I am getting compile error at End Sub

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Holidays on Month Sheets

    Hi Dave,

    In your code post #2, the m is not defined as a variable.

    @xjohnson,

    Add End With right before End Sub
    Last edited by jeffreybrown; 11-18-2018 at 11:15 AM.
    HTH
    Regards, Jeff

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

    Re: Holidays on Month Sheets

    Quote Originally Posted by maras_mak View Post
    Hi, in the 'Holidays' sheet, name the range 'A3: A20' as 'holidays_'.
    In the 'January' sheet, select the range 'A3: N33' -> conditional formatting -> new rule = COUNTIF (holidays_; A3) -> fill color.
    Repeat for the remaining months.
    Regards.
    Nice one,
    Here and in Texas it would be,
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Holidays on Month Sheets

    I appreciate all of the responses but the rules changes seem difficult to do for my abilities.

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

    Re: Holidays on Month Sheets

    Here is your workbook back with the updated code, also January sheet has a sample that maras_mak was referring to.
    Attached Files Attached Files

  13. #13
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Holidays on Month Sheets

    I put the End With and it works great thanks Jeffrey.

    There is one exception though. There is a day for next year's New Year Day that I would like in the end of the end of the December month. There may also be a few days there if we take more days for the Christmas break.

    Can this be added?

    Thank you

  14. #14
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Holidays on Month Sheets

    I like the change to highlight the day when there is activity thanks Dave and Maras.

    Wow this is a great workbook so far. Hope others can benefit.

  15. #15
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Holidays on Month Sheets

    Hi everyone,

    Thanks for help but is there a way to also request that December includes the extra days for January of 2019 from the Holidays sheet?

    See new revision please.

    Thank you,
    XJ

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

    Re: Holidays on Month Sheets

    Here you go,
    Please Login or Register  to view this content.

+ 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. Workdays per month excluding holidays help required with Formula
    By nion64 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-21-2018, 06:29 AM
  2. [SOLVED] Display last working day of month, taking into account national holidays?
    By will1565 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-29-2015, 06:53 PM
  3. Number of Mondays (Tuesdays, etc.) in a month, not counting holidays
    By ratkins in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-24-2015, 04:12 PM
  4. Mondays to Fridays Grouped by Month, Excluding Holidays, Between Two Dates
    By brenden101 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-06-2015, 08:28 AM
  5. Replies: 1
    Last Post: 12-12-2014, 05:43 PM
  6. [SOLVED] Count Holidays within Month, Within Monday - Friday
    By timharding in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2013, 08:17 PM
  7. [SOLVED] Generating business days in a calendar month, EXCLUDING holidays
    By jacob in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-12-2005, 12:06 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