Dynamic Calender

raccoon588

Board Regular
Joined
Aug 5, 2016
Messages
118
I have a calendar on one tab and a list with three columns on another tab. The three columns are NAME, DATE OFF, and APPROVED. If the APPROVED column has a yes in it i would like to have the name placed into the calendar bellow the corresponding date. sometimes there may be more then one name assigned to a date.

any ideas on how to go about this?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
raccoon588,
You might give this calendar a try...I have used it successfully for several different applications.
Download the macro enabled file from this link:
https://app.box.com/s/b5u2l6zwmphmj6peeuuog7rzhzz7p63b
Save this file with your filename.


Beginning in row 6 (Header Row) of the calendar sheet (Sheet1) thereof,
- Copy your DATE OFF column to column J of the calendar sheet.
- Copy your NAME column to column K of the calendar sheet.
- Copy your APPROVED column to column L of the calendar sheet.


Save your file as macro enabled, .xlsm file extension.


Press Alt+F11 and locate the macro named 'MyHolidays' in Module6.
Change the line of code that reads:
Code:
   If Cells(4, "J") = myMonth Then


To this:
Code:
   If Cells(4, "J") = myMonth And Cells(rw1, "L") = "Yes" Then


Close the Visual Basic Editor and Save the file.


Manually change the year to the year you want, 2018? You will have to do this each year.
Make sure macros have been enabled, you may have to do this each time you open the file depending
on the version of Excel you are running.


Now change the month by selecting it from the drop down in cell J4.
The dates with 'Yes' in column L should be highlighted and shown in the respective dates of this calendar as shown below.
Perpa


Sheet1

BCDEFGHIJKLM
3Select Month from Drop Down
4JULY2018JULY<=======in this box
5
6DATE OFFNAMEAPPROVED
7SUNDAYMONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAY7/3/2018GeorgeYes
812345677/4/2018Tex
9George7/10/2018SamYes
107/20/2018MikeYes
118910111213147/30/2018Tim
12Sam7/30/2018Tom
13
1415161718192021
15Mike
16
1722232425262728
18
19
20293031
21
22
23

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Last edited:
Upvote 0
raccoon588,
The image below is a better representation of the finished look. Don't know why Excel Jeanie distorts everything like that.
Perpa


URL]
 
Upvote 0

Forum statistics

Threads
1,215,949
Messages
6,127,892
Members
449,411
Latest member
AppellatePerson

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