+ Reply to Thread
Results 1 to 2 of 2

Problem with calendar

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    539

    Problem with calendar

    I have a calendar feature in my worksheet that I use to calculate the weekly averages of our employees. As I change the month, week number, and day of the week the date changes accordingly.
    for example, February 2018 1st week, Thursday comes out to 2/1/2018. at the end of the calendar I can place the week as the 5th week and it changes to march 1 and so on depending on the day of the week.
    The problem I am having is the first of the month. When I change to February I cant get the first three days to show 1/29/2018 - 1/31/2018. Changing the week of the month to 0 just gives me 1/31/2018 but -1 does not give me 1/30/2018. I am stumped. I might need a whole new calendar design.
    I have included an example.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Problem with calendar

    Quote Originally Posted by chriswrcg View Post
    The problem I am having is the first of the month. When I change to February I cant get the first three days to show 1/29/2018 - 1/31/2018. Changing the week of the month to 0 just gives me 1/31/2018 but -1 does not give me 1/30/2018. .
    I'm not sure what result you want when you choose week 0?


    This will calculate week 0 as week 1 and then subtract 7 days.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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] Problem with a calendar
    By Ortz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-08-2021, 05:44 PM
  2. problem with a calendar
    By glda19 in forum Excel General
    Replies: 0
    Last Post: 01-09-2017, 03:16 PM
  3. [SOLVED] Pop-Up Calendar problem
    By guleman in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-24-2014, 05:57 AM
  4. Calendar Problem
    By Silver_Eros in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2013, 11:21 AM
  5. Popup calendar problem
    By Temporary-Failure in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2010, 12:58 PM
  6. Problem with pop-up calendar
    By rustym in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2010, 02:43 AM
  7. [SOLVED] Calendar problem
    By Patrick Simonds in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-12-2005, 04:05 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