Good day everyone,
I have a sheet in a workbook that displays results based on a drop-down list in that sheet.
For example,
if you choose "For approval" then all the results with for approval will paste into the "FOR APPROVAL" sheet.
if you choose "Rejected" then all the results with for approval will paste into the "REJECTED PTO" sheet.
if choose "Cancel" then all the results with for approval will paste into the "CANCELLED PTO" sheet.
All I have now is the first dropdown to copy and paste to the FOR APPROVAL sheet and the rest has no changes. Also, It didn't show in FOR APPROVAL sheet if I choose same row. Please see the images.
Please see the code I used,
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Z As Long
Dim xVal As String
On Error Resume Next
If Intersect(Target, Range("n:n")) Is Nothing Then Exit Sub
Application.EnableEvents = False
For Z = 1 To Target.Count
If Target(Z).Value > 0 Then
Call CopyRowBasedOnCellValue
End If
Next
Application.EnableEvents = True
End Sub
Sub CopyRowBasedOnCellValue()
Dim xRg As Range
Dim xCell As Range
Dim A As Long
Dim B As Long
Dim C As Long
A = Worksheets("TEAM LINO").UsedRange.Rows.Count
B = Worksheets("FOR APPROVAL").UsedRange.Rows.Count
If B = 1 Then
If Application.WorksheetFunction.CountA(Worksheets("FOR APPROVAL").UsedRange) = 1 Then B = 0
End If
Set xRg = Worksheets("TEAM LINO").Range("N1:N" & A)
On Error Resume Next
Application.ScreenUpdating = False
For C = 1 To xRg.Count
If CStr(xRg(C).Value) = "For approval" Then
xRg(C).EntireRow.Copy Destination:=Worksheets("FOR APPROVAL").Range("A" & B + 1)
B = B + 1
End If
Worksheets("FOR APPROVAL").UsedRange.RemoveDuplicates Columns:=1, Header:=xlYes
Worksheets("FOR APPROVAL").UsedRange.SpecialCells(xlCellTypeBlanks).Delete xlShiftUp
Next
Application.ScreenUpdating = True
End Sub
I have total of 11 sheets,
7 sheets are for different team names and 4 sheets for what you choose in the dropdown list result.
i.e
Approved PTO- Sheet 1
Cancelled PTO - Sheet 2
Rejected PTO - Sheet 3
For approval - Sheet 4
Team 1 - Sheet 5
Team 2 - Sheet 6
Team 3 - Sheet 7
Team 4 - Sheet 8
Team 5 - Sheet 9
Team 6 - Sheet 10
Team 7 - Sheet 11
TEAM JEN
TEAM LINO
FOR APPROVAL
REJECTED PTO
CANCELLED PTO
APPROVED PTO
Also, is it possible to start pasting to row 4 and separate the agent to sme?
I am not familiar with VBA at all, I was hoping to get a code that would select each option from the list then copy it and paste it as values and formatting to a new workbook one by one to a new sheet within that workbook.
The data to be pasted to the new workbook should be on each individual sheet.
I hope someone will help me. Thank you very much.
I have a sheet in a workbook that displays results based on a drop-down list in that sheet.
For example,
if you choose "For approval" then all the results with for approval will paste into the "FOR APPROVAL" sheet.
if you choose "Rejected" then all the results with for approval will paste into the "REJECTED PTO" sheet.
if choose "Cancel" then all the results with for approval will paste into the "CANCELLED PTO" sheet.
All I have now is the first dropdown to copy and paste to the FOR APPROVAL sheet and the rest has no changes. Also, It didn't show in FOR APPROVAL sheet if I choose same row. Please see the images.
Please see the code I used,
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Z As Long
Dim xVal As String
On Error Resume Next
If Intersect(Target, Range("n:n")) Is Nothing Then Exit Sub
Application.EnableEvents = False
For Z = 1 To Target.Count
If Target(Z).Value > 0 Then
Call CopyRowBasedOnCellValue
End If
Next
Application.EnableEvents = True
End Sub
Sub CopyRowBasedOnCellValue()
Dim xRg As Range
Dim xCell As Range
Dim A As Long
Dim B As Long
Dim C As Long
A = Worksheets("TEAM LINO").UsedRange.Rows.Count
B = Worksheets("FOR APPROVAL").UsedRange.Rows.Count
If B = 1 Then
If Application.WorksheetFunction.CountA(Worksheets("FOR APPROVAL").UsedRange) = 1 Then B = 0
End If
Set xRg = Worksheets("TEAM LINO").Range("N1:N" & A)
On Error Resume Next
Application.ScreenUpdating = False
For C = 1 To xRg.Count
If CStr(xRg(C).Value) = "For approval" Then
xRg(C).EntireRow.Copy Destination:=Worksheets("FOR APPROVAL").Range("A" & B + 1)
B = B + 1
End If
Worksheets("FOR APPROVAL").UsedRange.RemoveDuplicates Columns:=1, Header:=xlYes
Worksheets("FOR APPROVAL").UsedRange.SpecialCells(xlCellTypeBlanks).Delete xlShiftUp
Next
Application.ScreenUpdating = True
End Sub
I have total of 11 sheets,
7 sheets are for different team names and 4 sheets for what you choose in the dropdown list result.
i.e
Approved PTO- Sheet 1
Cancelled PTO - Sheet 2
Rejected PTO - Sheet 3
For approval - Sheet 4
Team 1 - Sheet 5
Team 2 - Sheet 6
Team 3 - Sheet 7
Team 4 - Sheet 8
Team 5 - Sheet 9
Team 6 - Sheet 10
Team 7 - Sheet 11
TEAM JEN
COPY-CLUSTER-ARCIE-PTO-1.xlsx | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | AGENTS | 14 | #REF! | #REF! | #REF! | #REF! | #REF! | #REF! | #REF! | |||||||
2 | WD ID | Name | Supervisor | Manager | Sun | Mon | Tue | Wed | Thu | Fri | Sat | Reason | Priority List Number: | Action | ||
3 | 102149489 | Aldrich Diaz | Jenissa Micabalo | Arcie Jane Pann | 7:00AM-4:00PM | 2:00PM-11:00PM | 2:00PM-11:00PM | 2:00PM-11:00PM | 2:00PM-11:00PM | 2:00PM-11:00PM | 2:00PM-11:00PM | ASDSADSADSAD | 11. Travel without ticket | For approval | ||
4 | 101862957 | Elle Madidis | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
5 | 102082853 | Archelle Pie Quema | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
6 | 101839878 | Ivan Paul Davalan | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
7 | 102143489 | John Renzo Aclan | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
8 | 101840879 | Krizia Mae Jean Florendo | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
9 | 101039111 | Lovela Abing | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
10 | 102082838 | Maryette Rea Banaglorioso | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
11 | 101862047 | Nedzfhar Abadia | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
12 | 102175481 | Patrick John Fango | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
13 | 102080670 | Renz Brylle Matugas | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
14 | 102080307 | Russel Hilau | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
15 | 101856531 | Shiela Mae Labton | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
16 | 101856165 | Zyra Initan | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
17 | - | - | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
18 | - | - | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
19 | - | - | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
20 | - | - | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
21 | - | - | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
22 | - | - | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | ||||
23 | ||||||||||||||||
24 | SME | 1 | #REF! | #REF! | #REF! | #REF! | #REF! | #REF! | #REF! | |||||||
25 | WD ID | Name | Supervisor | Manager | Sun | Mon | Tue | Wed | Thu | Fri | Sat | Reason | Priority List Number: | Action | ||
26 | 101799120 | Olga Marie | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | For approval | ||
TEAM JEN |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B1 | B1 | =COUNTA(B3:B16) |
E1:K1 | E1 | ='FOR APPROVAL'!#REF! |
B24 | B24 | =COUNTA(B26) |
E24:K24 | E24 | =E1 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
E3:K22 | Cell Value | contains "6:00AM-3:00PM" | text | NO |
E3:K22 | Cell Value | contains "7:00;M-4:00PM" | text | NO |
E3:K22 | Cell Value | contains "2:00;M-11:00PM" | text | NO |
E3:K22 | Cell Value | contains "PTO" | text | NO |
E3:K22 | Cell Value | contains "OFF" | text | NO |
E26:K26 | Cell Value | contains "6:00AM-3:00PM" | text | NO |
E26:K26 | Cell Value | contains "7:00;M-4:00PM" | text | NO |
E26:K26 | Cell Value | contains "2:00;M-11:00PM" | text | NO |
E26:K26 | Cell Value | contains "PTO" | text | NO |
E26:K26 | Cell Value | contains "OFF" | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
E26:K26 | List | OFF, PTO, 6:00AM-2:00PM, 2:00PM-11:00PM, - |
E3:K22 | List | OFF, PTO, 6:00AM-3:00PM, 7:00AM-4:00PM, 2:00PM-11:00PM, - |
M3:M22 | List | 1. Medical surgery, 2. 40th day, 3. Travel with ticket, 4. Rater's Bday, 5. Wedding, 6. Medical checkup, 7. Exams, 8. Graduation, 9. Death anniv, 10. Other's birthday, 11. Travel without ticket, 12. Personal Matter, - |
N3:N22 | List | For approval, Rejected, Cancel |
M26 | List | 1. Medical surgery, 2. 40th day, 3. Travel with ticket, 4. Rater's Bday, 5. Wedding, 6. Medical checkup, 7. Exams, 8. Graduation, 9. Death anniv, 10. Other's birthday, 11. Travel without ticket, 12. Personal Matter, - |
N26 | List | For approval, Rejected, Cancel |
TEAM LINO
COPY-CLUSTER-ARCIE-PTO-1.xlsx | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | AGENTS | 15 | #REF! | #REF! | #REF! | #REF! | #REF! | #REF! | #REF! | |||||||
2 | WD ID | Name | Supervisor | Manager | Sun | Mon | Tue | Wed | Thu | Fri | Sat | Reason | Priority List Number: | Action | ||
3 | 102149489 | Angelica Dagandan | Lino Tigao | Arcie Jane Pann | PTO | - | OFF | 6:00AM-3:00PM | - | - | - | - | 11. Travel without ticket | For approval | ||
4 | 101862957 | Janico Ramada | Lino Tigao | Arcie Jane Pann | - | PTO | - | OFF | - | - | - | - | 10. Other's birthday | |||
5 | 102082853 | Jasper Kenneth Zapanta | Lino Tigao | Arcie Jane Pann | - | - | - | - | 6:00AM-3:00PM | - | PTO | - | 8. Graduation | |||
6 | 101839878 | Johna Ville Lim | Lino Tigao | Arcie Jane Pann | - | - | PTO | - | - | - | - | - | - | |||
7 | 102143489 | Joshua Navarro | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
8 | 101840879 | Joy Burgos | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
9 | 101039111 | Marcelo Jr Alfeche | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
10 | 102082838 | Mary Ann Samson | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
11 | 101862047 | Michael Ortizo | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
12 | 102175481 | Raybener Pedalino | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
13 | 102080670 | Samuelle Marie Repollo | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
14 | 102080307 | Sev Banasiewicz | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
15 | 101856531 | Shella Marie Caral | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
16 | 101856165 | Syrell Jabungan | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
17 | 101856662 | Zandy Ytang | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
18 | - | - | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
19 | - | - | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
20 | - | - | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
21 | - | - | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
22 | - | - | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | |||
23 | ||||||||||||||||
24 | SME | 1 | #REF! | #REF! | #REF! | #REF! | #REF! | #REF! | #REF! | |||||||
25 | WD ID | Name | Supervisor | Manager | Sun | Mon | Tue | Wed | Thu | Fri | Sat | Reason | Priority List Number: | Action | ||
26 | 101835385 | Klyde Recto | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | For approval | ||
TEAM LINO |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B1 | B1 | =COUNTA(B3:B17) |
E1:K1 | E1 | ='FOR APPROVAL'!#REF! |
B24 | B24 | =COUNTA(B25) |
E24:K24 | E24 | =E1 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
E3:K22,E26:K26 | Cell Value | contains "6:00AM-3:00PM" | text | NO |
E3:K22,E26:K26 | Cell Value | contains "7:00;M-4:00PM" | text | NO |
E3:K22,E26:K26 | Cell Value | contains "2:00;M-11:00PM" | text | NO |
E3:K22,E26:K26 | Cell Value | contains "PTO" | text | NO |
E3:K22,E26:K26 | Cell Value | contains "OFF" | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
E26:K26 | List | OFF, PTO, 6:00AM-2:00PM, 2:00PM-11:00PM, - |
E3:K16 | List | OFF, PTO, 6:00AM-3:00PM, 7:00AM-4:00PM, 2:00PM-11:00PM, - |
E17:K22 | List | OFF, PTO, 6:00AM-2:00PM, 2:00PM-11:00PM, - |
M3:M22 | List | 1. Medical surgery, 2. 40th day, 3. Travel with ticket, 4. Rater's Bday, 5. Wedding, 6. Medical checkup, 7. Exams, 8. Graduation, 9. Death anniv, 10. Other's birthday, 11. Travel without ticket, 12. Personal Matter, - |
N3:N22 | List | For approval, Rejected, Cancel |
M26 | List | 1. Medical surgery, 2. 40th day, 3. Travel with ticket, 4. Rater's Bday, 5. Wedding, 6. Medical checkup, 7. Exams, 8. Graduation, 9. Death anniv, 10. Other's birthday, 11. Travel without ticket, 12. Personal Matter, - |
N26 | List | For approval, Rejected, Cancel |
FOR APPROVAL
COPY-CLUSTER-ARCIE-PTO-1.xlsx | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | WD ID | Name | Supervisor | Manager | Sun | Mon | Tue | Wed | Thu | Fri | Sat | Reason | Priority List Number: | Remarks | ||
2 | 102149489 | Aldrich Diaz | Jenissa Micabalo | Arcie Jane Pann | 7:00AM-4:00PM | 2:00PM-11:00PM | 2:00PM-11:00PM | 2:00PM-11:00PM | 2:00PM-11:00PM | 2:00PM-11:00PM | 2:00PM-11:00PM | ASDSADSADSAD | 11. Travel without ticket | For approval | ||
3 | 101799120 | Olga Marie | Jenissa Micabalo | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | For approval | ||
4 | 101835385 | Klyde Recto | Lino Tigao | Arcie Jane Pann | - | - | - | - | - | - | - | - | - | For approval | ||
5 | ||||||||||||||||
6 | ||||||||||||||||
7 | ||||||||||||||||
8 | ||||||||||||||||
9 | ||||||||||||||||
10 | ||||||||||||||||
11 | ||||||||||||||||
12 | ||||||||||||||||
13 | ||||||||||||||||
14 | ||||||||||||||||
15 | ||||||||||||||||
16 | ||||||||||||||||
17 | ||||||||||||||||
18 | ||||||||||||||||
19 | ||||||||||||||||
20 | ||||||||||||||||
21 | ||||||||||||||||
22 | ||||||||||||||||
23 | ||||||||||||||||
24 | ||||||||||||||||
25 | ||||||||||||||||
26 | ||||||||||||||||
FOR APPROVAL |
REJECTED PTO
COPY-CLUSTER-ARCIE-PTO-1.xlsx | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | CLUSTER ARCIE | |||||||||||||
2 | RATERS | 4/14/2024 | 4/15/2024 | 4/16/2024 | 4/17/2024 | 4/18/2024 | 4/19/2024 | 4/20/2024 | ||||||
3 | No. | WD ID | Name | Supervisor | Manager | Sun | Mon | Tue | Wed | Thu | Fri | Sat | ||
4 | 1 | |||||||||||||
5 | 2 | |||||||||||||
6 | 3 | |||||||||||||
7 | 4 | |||||||||||||
8 | 5 | |||||||||||||
9 | 6 | |||||||||||||
10 | 7 | |||||||||||||
11 | 8 | |||||||||||||
12 | 9 | |||||||||||||
13 | 10 | |||||||||||||
14 | 11 | |||||||||||||
15 | 12 | |||||||||||||
16 | 13 | |||||||||||||
17 | 14 | |||||||||||||
18 | 15 | |||||||||||||
19 | 16 | |||||||||||||
20 | 17 | |||||||||||||
21 | 18 | |||||||||||||
22 | 19 | |||||||||||||
23 | 20 | |||||||||||||
24 | ||||||||||||||
25 | ||||||||||||||
26 | SME | 4/14/2024 | 4/15/2024 | 4/16/2024 | 4/17/2024 | 4/18/2024 | 4/19/2024 | 4/20/2024 | ||||||
27 | No. | WD ID | Name | Supervisor | Manager | Sun | Mon | Tue | Wed | Thu | Fri | Sat | ||
28 | 1 | |||||||||||||
29 | 2 | |||||||||||||
30 | 3 | |||||||||||||
31 | 4 | |||||||||||||
32 | 5 | |||||||||||||
33 | 6 | |||||||||||||
34 | 7 | |||||||||||||
REJECTED PTO |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G26:L26,G2:L2 | G2 | =F2+1 |
F26 | F26 | =F2 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
F28:L34 | Cell Value | contains "PTO" | text | NO |
F28:L34 | Cell Value | contains "OFF" | text | NO |
F4:L12 | Cell Value | contains "PTO" | text | NO |
F4:L12 | Cell Value | contains "OFF" | text | NO |
CANCELLED PTO
COPY-CLUSTER-ARCIE-PTO-1.xlsx | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | CLUSTER ARCIE | |||||||||||||
2 | RATERS | 4/14/2024 | 4/15/2024 | 4/16/2024 | 4/17/2024 | 4/18/2024 | 4/19/2024 | 4/20/2024 | ||||||
3 | No. | WD ID | Name | Supervisor | Manager | Sun | Mon | Tue | Wed | Thu | Fri | Sat | ||
4 | 1 | |||||||||||||
5 | 2 | |||||||||||||
6 | 3 | |||||||||||||
7 | 4 | |||||||||||||
8 | 5 | |||||||||||||
9 | 6 | |||||||||||||
10 | 7 | |||||||||||||
11 | 8 | |||||||||||||
12 | 9 | |||||||||||||
13 | 10 | |||||||||||||
14 | 11 | |||||||||||||
15 | 12 | |||||||||||||
16 | 13 | |||||||||||||
17 | 14 | |||||||||||||
18 | 15 | |||||||||||||
19 | 16 | |||||||||||||
20 | 17 | |||||||||||||
21 | 18 | |||||||||||||
22 | 19 | |||||||||||||
23 | 20 | |||||||||||||
24 | ||||||||||||||
25 | ||||||||||||||
26 | SME | 4/14/2024 | 4/15/2024 | 4/16/2024 | 4/17/2024 | 4/18/2024 | 4/19/2024 | 4/20/2024 | ||||||
27 | No. | WD ID | Name | Supervisor | Manager | Sun | Mon | Tue | Wed | Thu | Fri | Sat | ||
28 | 1 | |||||||||||||
29 | 2 | |||||||||||||
30 | 3 | |||||||||||||
31 | 4 | |||||||||||||
32 | 5 | |||||||||||||
33 | 6 | |||||||||||||
34 | 7 | |||||||||||||
CANCELLED PTO |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G26:L26,G2:L2 | G2 | =F2+1 |
F26 | F26 | =F2 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
F28:L34 | Cell Value | contains "PTO" | text | NO |
F28:L34 | Cell Value | contains "OFF" | text | NO |
F4:L12 | Cell Value | contains "PTO" | text | NO |
F4:L12 | Cell Value | contains "OFF" | text | NO |
APPROVED PTO
COPY-CLUSTER-ARCIE-PTO-1.xlsx | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | CLUSTER ARCIE | |||||||||||||
2 | RATERS | 4/14/2024 | 4/15/2024 | 4/16/2024 | 4/17/2024 | 4/18/2024 | 4/19/2024 | 4/20/2024 | ||||||
3 | No. | WD ID | Name | Supervisor | Manager | Sun | Mon | Tue | Wed | Thu | Fri | Sat | ||
4 | 1 | |||||||||||||
5 | 2 | |||||||||||||
6 | 3 | |||||||||||||
7 | 4 | |||||||||||||
8 | 5 | |||||||||||||
9 | 6 | |||||||||||||
10 | 7 | |||||||||||||
11 | 8 | |||||||||||||
12 | 9 | |||||||||||||
13 | 10 | |||||||||||||
14 | 11 | |||||||||||||
15 | 12 | |||||||||||||
16 | 13 | |||||||||||||
17 | 14 | |||||||||||||
18 | 15 | |||||||||||||
19 | 16 | |||||||||||||
20 | 17 | |||||||||||||
21 | 18 | |||||||||||||
22 | 19 | |||||||||||||
23 | 20 | |||||||||||||
24 | ||||||||||||||
25 | ||||||||||||||
26 | SME | 4/14/2024 | 4/15/2024 | 4/16/2024 | 4/17/2024 | 4/18/2024 | 4/19/2024 | 4/20/2024 | ||||||
27 | No. | WD ID | Name | Supervisor | Manager | Sun | Mon | Tue | Wed | Thu | Fri | Sat | ||
28 | 1 | |||||||||||||
29 | 2 | |||||||||||||
30 | 3 | |||||||||||||
31 | 4 | |||||||||||||
32 | 5 | |||||||||||||
33 | 6 | |||||||||||||
34 | 7 | |||||||||||||
APPROVED PTO |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G26:L26,G2:L2 | G2 | =F2+1 |
F26 | F26 | =F2 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
F28:L34 | Cell Value | contains "PTO" | text | NO |
F28:L34 | Cell Value | contains "OFF" | text | NO |
F4:L12 | Cell Value | contains "PTO" | text | NO |
F4:L12 | Cell Value | contains "OFF" | text | NO |
Also, is it possible to start pasting to row 4 and separate the agent to sme?
I am not familiar with VBA at all, I was hoping to get a code that would select each option from the list then copy it and paste it as values and formatting to a new workbook one by one to a new sheet within that workbook.
The data to be pasted to the new workbook should be on each individual sheet.
I hope someone will help me. Thank you very much.