+ Reply to Thread
Results 1 to 2 of 2

VBA macro code for rota leave management

  1. #1
    Registered User
    Join Date
    02-23-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    49

    VBA macro code for rota leave management

    The excel attached is an example of a rota which I have made and use. I need some help with the macro coding. There are a few specific things please see below.

    1a) In leave input sheet if the number of days of leave is = 1 I need help with changing the VBA code so that it looks at the AM and PM column and if there is either "AM" or "PM" written in the cell to then minus 0.5 from the number of days of leave so that only 0.5 days of leave is displayed.

    1b) Following on from this, I then need the VBA code on the Weekrota tab to accommodate this and only take the persons initials off the rota at the appropriate "AM" or "PM" time.


    2) On a slightly different point is it possible to build a VBA code that accommodates the leave dates and places the initials in the weekly cover box in the weekrota tab.

    Please let me know if you can help with any of these. points 1a and 1b are the most crucial.

    Thank you
    Attached Files Attached Files
    Last edited by Nightowel23; 11-18-2021 at 01:12 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862

    Re: VBA macro code for rota leave management

    < post deleted >
    Last edited by MatrixMan; 11-18-2021 at 06:13 PM.
    MatrixMan.
    --------------------------------------
    If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
    If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.

+ 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] Excel Rota - Flagging when 6 shifts are set on rota in a row
    By Delta Foxtrot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-21-2020, 05:55 AM
  2. [SOLVED] Formula for time displayed within a staff rota
    By ~TaC~ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-15-2018, 06:18 AM
  3. Replies: 14
    Last Post: 05-23-2015, 06:26 AM
  4. Number from rota time sheet into grid using time
    By Fordy_deluxe in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-05-2015, 04:21 AM
  5. Replies: 0
    Last Post: 04-07-2015, 11:39 PM
  6. create time sheet from rota
    By Managerwork in forum Excel General
    Replies: 0
    Last Post: 10-09-2013, 10:53 AM
  7. [SOLVED] Rota time calculations and colour coding
    By lukela85 in forum Excel General
    Replies: 4
    Last Post: 09-14-2013, 06:28 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