Simple? Leave Tracker Issues with Macros

Susanna123

New Member
Joined
Mar 3, 2022
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
I am a newbie and I am trying to create a useful Leave tracker for employees. But I have 2 major issues:

1) I have tried different tutorials on how to hide the first Days of March showing in the month of February using Macros. I either end up having 28 days for all months or having March 1st, 2nd and 3rd (which are Columns AE,AF,AG)showing when I select February. I don't know what the problem could be.

2) I have a scrolling calendar but when I insert a Leave (for example Sick Leave "S" in H13,H14 in my Range C8:AG42) it remains fixed in the same cells even when the month changes to march or other months.

I really hope someone can help me, if not I might need to change my Leave Tracker to a much simpler format.
 

Attachments

  • FEBRUARY Leave Tracker.png
    FEBRUARY Leave Tracker.png
    116.7 KB · Views: 33
  • MARCH Leave Tracker.png
    MARCH Leave Tracker.png
    114.8 KB · Views: 33
You're welcome, glad I could help.

it's best for me if I work on a year per time (a Year per sheet).
Regarding this...
I think if you right click on the LEAVE Chart tab, select move or copy,
check the Create a copy check box and choose where to place that copy in this same workbook (like move to end),
you could then use the Change Year button on that new sheet to setup another year.
Changing the tab name shouldn't bother any of the code as the macros operate on whatever sheet is the active sheet.

Good luck with your project,
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,215,064
Messages
6,122,942
Members
449,094
Latest member
teemeren

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