+ Reply to Thread
Results 1 to 4 of 4

Macro for update attendance sheet (shhet1) when update leave dates in Sheet2

  1. #1
    Spammer
    Join Date
    08-25-2016
    Location
    https://t.me/pump_upp
    MS-Off Ver
    office10
    Posts
    15

    Macro for update attendance sheet (shhet1) when update leave dates in Sheet2

    Hi All

    Macro for update attendance sheet (shhet1) when update leave dates in Sheet2

    please help me to write code for this auto update sheet1 date when i update leave date in sheet2

    Thanks
    Manish
    Attached Files Attached Files

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Macro for update attendance sheet (shhet1) when update leave dates in Sheet2

    Hello manissinha5,

    Your requirement is not quite clear. Please upload a sample Workbook, showing us a "before" and "after", i.e. which Cells do you need to update in Sheet 1.
    Also Sheet 1 contains a Date range for August 2019 whilst Sheet 2 shows dates for November 2019, which are not available in Sheet 1. Do you want to have the Dates in Sheet 1 to be overwritten with changes made on Sheet 2?

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Spammer
    Join Date
    08-25-2016
    Location
    https://t.me/pump_upp
    MS-Off Ver
    office10
    Posts
    15

    Re: Macro for update attendance sheet (shhet1) when update leave dates in Sheet2

    Hi Winon

    when I update the leave dates i.e 15/11/2019 to 20/11/2019 in sheet2 the "PL" should automatic marked in sheet1 on 15,16,17,18,19,20 excluding week off on sat sun ( if Sat sun in between those date shoul marked "WO"
    hope this will help you to write code

    regards

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,607

    Re: Macro for update attendance sheet (shhet1) when update leave dates in Sheet2

    Perhaps this formula based proposal will help.
    This proposal makes some changes to the data setup.
    1. The range A2:E12 on Sheet 2 is converted to a table.
    2. The values in cells D3:E12 are changed from text to dates using the Text to Columns feature.
    3. On Sheet 1 the range D19:AH31 is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that D19:AH31 may be moved and/or hidden for aesthetic purposes.
    4. The range D5:AH17 is populated using: =IF(D$1="","",IF(AND(D19<>"",WEEKDAY(D$1,2)>=6),"WO",D19))
    5. D2 is manually populated 11/1/2019
    6. E2:AH2 are populated using: =IF(MONTH(D1+1)=MONTH($D1),D1+1,"")
    7. D3:AH3 are populated using: =D1 and custom formatted ddd
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] VBA code for Index match criteria to update the attendance sheet
    By roven.aravind in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-06-2019, 03:15 AM
  2. Transfer/update columns from 1 sheet to another + update chart & data selection
    By Julien355 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-29-2015, 11:54 PM
  3. Update Attendance with Conditional formatting
    By nickh1981 in forum Excel General
    Replies: 4
    Last Post: 05-26-2014, 11:54 AM
  4. Update link (Update values) on a protected sheet excel 2010
    By sonu1975 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2014, 09:49 AM
  5. update value and edit items already update on sheet by userform
    By tjxc32m in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-08-2013, 10:13 AM
  6. [SOLVED] Update Macro: Leave Colour As Before Once Cell is Not Active
    By JB2010 in forum Excel General
    Replies: 2
    Last Post: 02-02-2006, 02:15 PM
  7. [SOLVED] how to update data on sheet1 and have it auto update on sheet2
    By Tommy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-11-2005, 06:43 PM

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