Hi,
Please help me i'm only a beginner in VbA.
I got a lot of names in cell B more than 60 names and 31 rows for date. BTW this is for a leave tracker.
My code is
For x = 5 to 55
Cells(x, 3) = application.evaluate("=xlookup(B&C2,NAME&DATE,LEAVE,"" "")")
Cells(x, 4) = application.evaluate("=xlookup(B&D2,NAME&DATE,LEAVE,"" "")")
Cells(x, 5) = application.evaluate("=xlookup(B&E2,NAME&DATE,LEAVE,"" "")")
Until
Cells(x, 33) = application.evaluate("=xlookup(B&AG2,NAME&DATE,LEAVE,"" "")")
Next X
End sub
Please excel masters help me
Please help me i'm only a beginner in VbA.
I got a lot of names in cell B more than 60 names and 31 rows for date. BTW this is for a leave tracker.
My code is
For x = 5 to 55
Cells(x, 3) = application.evaluate("=xlookup(B&C2,NAME&DATE,LEAVE,"" "")")
Cells(x, 4) = application.evaluate("=xlookup(B&D2,NAME&DATE,LEAVE,"" "")")
Cells(x, 5) = application.evaluate("=xlookup(B&E2,NAME&DATE,LEAVE,"" "")")
Until
Cells(x, 33) = application.evaluate("=xlookup(B&AG2,NAME&DATE,LEAVE,"" "")")
Next X
End sub
Please excel masters help me