+ Reply to Thread
Results 1 to 11 of 11

display calendar for a given month or date range in a row without weekends

  1. #1
    Registered User
    Join Date
    12-01-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2013
    Posts
    5

    display calendar for a given month or date range in a row without weekends

    Hi there,
    I need to solve a resource scheduling problem with excel vba. I need to put the create a calender according to given start and end date or month to show how the workers and machines are planned.

    I used an access backend to store the data, but I'm stuck with creating this calendar

    Any help will be appreciated

    Regards

    Wunmi
    Attached Files Attached Files
    Last edited by wunmi; 01-06-2014 at 02:00 PM.

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: display calendar for a given month or date range in a row without weekends

    I'm not really understanding what you're trying to accomplish. If you could attach an example of what you want this calendar to look like, that might help.

  3. #3
    Registered User
    Join Date
    12-01-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: display calendar for a given month or date range in a row without weekends

    Thanks for your response natefarm.
    What I'm trying to do is something like in the attached worksheet.
    I'm very comfortable with the SqL call part.
    I am quite new to vba programming :-(

  4. #4
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: display calendar for a given month or date range in a row without weekends

    I'm not seeing the attachment NEVER MIND. I FOUND IT.
    Last edited by natefarm; 01-06-2014 at 02:40 PM.

  5. #5
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: display calendar for a given month or date range in a row without weekends

    More questions:
    Please clarify what you mean by "given start and end date".
    If that includes more than one month, do you want a full month's calendar created for each?
    Would each calendar be on a separate sheet or on the same one?
    Do you want just the two heading rows, or a full grid. How would the number of rows be determined?
    You have a lot of formatting there (borders, font color, background color). Is the code to provide all that?

  6. #6
    Registered User
    Join Date
    12-01-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: display calendar for a given month or date range in a row without weekends

    Hey thanks for your quick responses

    I plan to use a VBA Form as means of input for the the query.

    I hope calculate the number of rows by subtracting the start date from end date. I plan to make it a 30 day calendar(maybe prompt the user to give a 30-Day period).
    I'd like to have the two heading rows, if possible.
    I'd like to keep it around a month per query to reduce complexity and the formatting are not quite necessary.

  7. #7
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: display calendar for a given month or date range in a row without weekends

    You say you want the days in rows, but in your attachment you have the days in columns and some other values in the rows. Also, you say a 30-day period, but the attachment has the 31 days of January. I guess I'm still confused.

  8. #8
    Registered User
    Join Date
    12-01-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: display calendar for a given month or date range in a row without weekends

    Oh sorry for the confusion! the days should be in columns(I need to place the resources needed on a date in their appropriate columns) and yes it should be a 31-day period :-)

    Thanks for your patience natefarm

  9. #9
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: display calendar for a given month or date range in a row without weekends

    Sorry this took so long. Got busy, then lost your code and had to start over. Anyway, this is a start. Adjust as needed, and if you need more help, let me know.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    12-01-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: display calendar for a given month or date range in a row without weekends

    Thanks a lot natefarm! That was a life saver! I have written too many complex code that are half as efficient!

    Thanks once again for your time

  11. #11
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: display calendar for a given month or date range in a row without weekends

    My pleasure!

+ 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] Display the first date of the month when the month and year are selected
    By john dalton in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2013, 11:59 AM
  2. Display Date Range of previous month
    By Oscar68 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2012, 12:39 PM
  3. Excluding weekends from a date range
    By Timjor in forum Excel General
    Replies: 2
    Last Post: 02-09-2012, 02:58 PM
  4. Display end of month date for previous month
    By erikwvb in forum Excel General
    Replies: 3
    Last Post: 06-20-2011, 01:22 PM
  5. display date, excluding weekends & holidays
    By emueller in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2008, 03:55 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