VBA: Calendar with event dates labelled with color and hours listed per day

JennV

New Member
Joined
May 9, 2019
Messages
34
Hello there,

I'm hoping to get some advice and guidance. I'm trying to create a calendar color coded by the event type and the number of hours spent per day.

To start, I used an Excel calendar template (it's the most applicable to my situation as it allows users to flip through years and display months for that year) and then applied conditional formatting to gray out weekends. Next, since the events each have a set amount of days, I applied conditional formatting per event. For example, event A is 4 days log, so from a start date to an end date, it's fill in as yellow on the calendar.


The struggle is, since it's a calendar template, it won't let me add rows. In addition, I'm not sure how I'd be able to have users add hours per day. Perhaps by using a userform through VBA?

January 2019
SunMonTuesWedThursFri
1234
8.58.55.55.5
5678910
8.58.58.5etc.
111213141516

<tbody>
</tbody>

Thank you in advance!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top