+ Reply to Thread
Results 1 to 6 of 6

Update absence tracker so that absence is automatically moved between sheets

  1. #1
    Registered User
    Join Date
    10-18-2022
    Location
    London, England
    MS-Off Ver
    365
    Posts
    19

    Post Update absence tracker so that absence is automatically moved between sheets

    Hello.

    I use the below code for my absence tracker which was kindly provided on another forum.

    I now need to change it, so instead of looking at current 12 month rolling period and previous 12 month rolling period, it looks at:

    Current 6 months Tab - All absence in the last 6 month rolling period from the current day (based on absence start date)
    Previous 6 months Tab - All absence from between 6 and 12 months from the current day (based on absence start date)
    Previous 12 months Tab - All absence between 12 months and 24 months (based on absence start date) and delete all rows containing absence older than 24 months from current day.

    In essence, basically splitting "current 12 months" in half into "current 6 months" and "previous 6 months".

    When the workbook is opened, it automatically moves each absence row between the tabs depending on the absence start date.

    The names and order of the columns will remain the same.

    Hope this makes sense. Original code is below:

    Please Login or Register  to view this content.
    Unfortunately, uploading of the example file failed.
    Last edited by Chris_M_1987; 10-18-2022 at 12:04 PM. Reason: Title Change

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Update absence tracker to show different rolling time intervals

    Quote Originally Posted by Chris_M_1987 View Post
    Unfortunately, uploading of the example file failed.
    Did you get an error indicating why it failed? Usually this is because it is too big.

    There is a size limit of 1MB for Excel files but you can zip the file. The limit for .zip files is 9.77MB.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-18-2022
    Location
    London, England
    MS-Off Ver
    365
    Posts
    19

    Re: Update absence tracker to show different rolling time intervals

    Hello,

    The .xlsm file is about 3.5mb, i just got a message saying the upload failed. I didn't see any other message but I can now see there's an upload limit. Let me see if I can upload a ZIP.

    Also, the title of this thread seems to have changed. Not sure what's happening.

    Kind Regards
    Last edited by Chris_M_1987; 10-18-2022 at 11:35 AM.

  4. #4
    Registered User
    Join Date
    10-18-2022
    Location
    London, England
    MS-Off Ver
    365
    Posts
    19

    Re: Update absence tracker to show different rolling time intervals

    Here is a copy of the excel file in ZIP
    Attached Files Attached Files

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Update absence tracker to show different rolling time intervals

    Quote Originally Posted by Chris_M_1987 View Post
    Also, the title of this thread seems to have changed. Not sure what's happening.
    You will note in the comment at the bottom of your first post that I changed the title. Your original title of VBA Code Help was not descriptive of your question; every question in this subforum is asking for VBA code help. A title should give enough information so that members can determine from the title if it is something they will be able to help with, and be useful in a search. Because it is your first post I changed it for you rather than issuing a violation notice.



    Administrative Note:

    Welcome to the forum.

    Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles.

  6. #6
    Registered User
    Join Date
    10-18-2022
    Location
    London, England
    MS-Off Ver
    365
    Posts
    19

    Re: Update absence tracker so that absence is automatically moved between sheets

    Some help on this would be greatly appreciated

+ 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] Code to display text & code in a combo list, but display only code when selected
    By kdestef1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2019, 06:07 PM
  2. [SOLVED] Need help with VBA code. Tons of code seperated in two, second part of code doesn't work.
    By FragaGeddon in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 11-30-2015, 11:46 AM
  3. [SOLVED] Pattern Building VBA Code - Working code, would like to use cleaner code
    By Benisato in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-10-2015, 03:05 PM
  4. [SOLVED] Excel VB code. Message pops up while code running asking question. Code must not wait.
    By Heinrich Venter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2014, 06:10 AM
  5. [SOLVED] VBA code for assigning a numeric code to text; then numeric code populates table
    By cteaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2014, 08:01 PM
  6. Replies: 2
    Last Post: 03-09-2013, 04:30 AM

Tags for this Thread

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