I am making a database of homework questions that I use in my classroom. These are stored in a sheet call "Qu Data". I have a front sheet called "Dashboard". This sheet contains several dropdown menus to filter and search through topics. When I have selected a topic, I have used Index Match to pull through questions from the Qu Data sheet and displayed them on the Dashboard sheet.
The actual questions are in Word docs that are hyperlinked through the workbook. What appears on the Dashboard are question title, description, difficulty level etc. One of the columns is called "Used" and my plan is that this changes between Y and N depending on whether I have given students this question for homework this year or not.
As I will be viewing and selecting these question lists on the Dashboard sheet I will be changing the Y and N there.
My aim is to have this change replicated in the Qu Data sheet. This is so next time I use the dropdown menus on Dashboard and pull through a list of questions from the Qu Data sheet I can find out if I have used them before.
I tried doing it in VBA with this;
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Range("M20") Then
If [M20] = "N" Then
Sheets("Qu Data").Range("K8") = "N"
ElseIf [M20] = "Y" Then
Sheets("Qu Data").Range("K8") = "Y"
End If
End If
This was my trial attempt as I will have a list of either 10, 20 or 25 questions for example on the Dashboard that have been index matched from the Qu Data sheet. I plan to change two or three Ns to Ys depending on what questions I select that time. These will then have to be reflected back to the Qu Data sheet so when they are pulled through again on a different day I know not to use them again.