Ok This should work. Note you can now have duplicate values in cells B1 and B2. [img alt_text='' description='']http://vbaf1.com/q/wp-content/uploads/2018/02/InsertRowafterdups_1.jpg[/img] [Code]...
Thanks, that's much appreciated, however once I've run the code it says the subscript is out of range - even if I...
Caveat: Cells B1 and B2 Must not be duplicates. Note! Change sheet name ("Sheet1") to your sheet name. [img alt_text=''...
This seemed to work for me. Make sure "SheetName" is "SheetName" and not "WorksheetName". I also added a Goto line1...
SORTED! [code] Private Sub AnotherSheet() Dim sDate As Date Dim tDate As Date Dim PayDay As Date Dim DueDate...
This answer was most helpful. Thank you
This answer was most helpful. Thank you.
Our new pay system at work went live in August 2017.
This is the new pay calendar (called pay periods)
This is the table for members (called MemberList)
I want to update the Processed in Pay Cal column with the pay periods.
Anything with a due date on or before 23 AUG 17 to be processed in PP0001 and the rest of them in the appropriate pay period. What is the syntax of the code, please?
If duedate <= 23Aug17 then
Update column 4 to PP0001
Update column 4 to the appropriate pay period
Please share using the share button above.
If you found the answer is best answer for your question, Please mark as 'best answer' by clicking on the right tick mark icon at the left side of the answer.
Found the answer useful and wants to credit the user, then vote the answer (vote up).
Enter the destination URL
Or link to existing content