I am writing VB code for a Excel form that prompts the user to answer a series of questions and then stores the responses in rows on a sheet. At present the code stores the first response in A2 then second response in B2 and so forth. The sub ends when a thank you prompt appears on the screen.
What I would like to do is when all questions are answered that the cursor will move to the first cell of the next row (A3) to store the answers to the same questions for another person. It must keep on moving to the next row.
These are the main pieces of code
Sub dform ()
Dim mName As String
mName = InputBox("What is your maiden named", "Maiden Name")
Range("A2").Select
ActiveCell.FormulaR1C1 = mName
x = MsgBox("Are you still married?", 4)
If x = 6 Then Range("G2").Value = "Yes"
If x = 7 Then Range("G2").Value = "No"
Exit Sub
End Sub