+ Reply to Thread
Results 1 to 2 of 2

Holiday absence tracker, holidays, or present won't change when selecting new dates

Hybrid View

  1. #1
    Registered User
    Join Date
    06-09-2023
    Location
    Northumberland
    MS-Off Ver
    365
    Posts
    1

    Holiday absence tracker, holidays, or present won't change when selecting new dates

    hi
    ive attempted to design a absence, preset & holiday tracker on 1 sheet. I have done all the formulas so when the user selects the month or year, the system tells you the correct dates.
    Here is my issue, when the user types in P = Present, A = absent & H = Holiday, when you change the month or year, the date still remains in the same cell, it does not disappear when you select a new month.
    I'm not sure if this can be achieved by using formulas or does it require some VBA?
    I'm happy to submit the file on here to find a resolution.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,877

    Re: Holiday absence tracker, holidays, or present won't change when selecting new dates

    I think that need to use VBA in worksheet "HOLS ABSENCE".

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
        Dim Rng As Range, rINT As Range
    
        Set Rng = Union(Range("I4"), Range("K4"))
        Set rINT = Intersect(Rng, Target)
        If rINT Is Nothing Then Exit Sub
        Range("N8:AZ1000").ClearContents
    End Sub
    Attached Files Attached Files
    Last edited by windknife; 06-10-2023 at 03:09 AM.

+ 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] Update absence tracker so that absence is automatically moved between sheets
    By Chris_M_1987 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-19-2022, 12:06 PM
  2. Help With formula and function Absence tracker
    By klhc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2022, 11:25 AM
  3. Replies: 3
    Last Post: 01-19-2022, 11:01 AM
  4. Excel formula to help count holiday and absence
    By Ri_ in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2019, 03:24 PM
  5. Absence Tracker Template by employee
    By sabrinaxiomara in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-07-2015, 09:44 PM
  6. Absence tracker problem
    By pandabear28 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2014, 05:23 AM
  7. Absence Tracker will not calculate
    By Vmgballer1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-13-2013, 08:48 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