Hello,
I am writing a code that has a For loop so that it will check rows 8 to 40 in column 18 of worksheet"DFM Example ". If a question has a red or yellow status there will be a value of 2 or 3 in column column 18.
If there is a 2 or 3 in column 18 then it will select an empty cell in "Project -Action Deck" . It will add the question number in into that cell and the one next to it.
My issue is that my code is not going through the For Loop.
I get an Error on the line under the "If" that states "Worksheets("Project - Action Deck").Cells(EmptyRow, 3).Select".
But I have gotten it to surpass this error and my loop will not make it past the first or second iteration.
I am writing a code that has a For loop so that it will check rows 8 to 40 in column 18 of worksheet"DFM Example ". If a question has a red or yellow status there will be a value of 2 or 3 in column column 18.
If there is a 2 or 3 in column 18 then it will select an empty cell in "Project -Action Deck" . It will add the question number in into that cell and the one next to it.
My issue is that my code is not going through the For Loop.
I get an Error on the line under the "If" that states "Worksheets("Project - Action Deck").Cells(EmptyRow, 3).Select".
But I have gotten it to surpass this error and my loop will not make it past the first or second iteration.